agda2hs
agda2hs copied to clipboard
Compiling Agda code to readable Haskell
to complement All
```agda not0 : Int → Bool not0 n = n /= 0 {-# COMPILE AGDA2HS not0 #-} ``` generates ```haskell import qualified Prelude ((/=)) not0 :: Int -> Bool not0...
Now, agda2hs skips every Agda file for which the corresponding Haskell file is newer _than the `.agdai` file_. For this, I had to replace the `moduleFileName` function from Render.hs and...
Guards
Writing functions with pattern guards is idiomatic in Haskell, but it is currently not supported by agda2hs. I can think of two ways this could be supported: 1. We translate...
Bug reported by @liesnikov. ```agda private variable @0 a : Set Ap : (p : @0 a → Set) → @0 a → Set Ap p x = p x...
This is the remaining issue with parametrized modules after the merging of https://github.com/agda/agda2hs/pull/307: ```agda record Class (a : Set) : Set where field foo : a → a open Class...
When defining an unboxed record, one gets to define new instances for type classes on the Agda side. Those instances never get compiled, and code that uses instances over boxed...