| ID | d51d8cc1-faef-4ee4-beaf-50177665290d |
|---|---|
| DeertopiaVisibility | public |
Idris 2
Idris 2 is a dependently-typed functional programming language inheriting principally from Haskell and Agda. Idris is most focused on exploring software developed using dependent types, and is the least theorem-focused language of its kind.
Useful links
Deriving interface instances
See Höck's library, elab-util.
import Derive.Prelude
%language ElabReflection
record Positive where
constructor MkPositive
val : Nat
0 prf : IsSucc val
%runElab derive "Positive" [Show,Eq,Ord]