mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-14 03:14:14 +03:00
21 lines
265 B
Idris
21 lines
265 B
Idris
||| class
|
|
||| @ t a type
|
|
class C (t : Type) where
|
|
||| member of class
|
|
m : t
|
|
|
|
||| type
|
|
data A = B
|
|
|
|
||| type 2
|
|
data D a b = E
|
|
|
|
||| instance of class
|
|
instance C A where
|
|
m = B
|
|
|
|
||| another instance of class
|
|
||| @ a parameter type
|
|
instance C (D a b) where
|
|
m = E
|