added PEnum
This commit is contained in:
parent
d6d0fb7146
commit
41fc863658
5 changed files with 43 additions and 20 deletions
14
sample-programs/basic-9
Normal file
14
sample-programs/basic-9
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
data List (a) where {
|
||||
Nil : List (a)
|
||||
Cons : a -> List (a) -> List (a)
|
||||
};
|
||||
|
||||
test xs = case xs of {
|
||||
Cons Nil _ => 0 ;
|
||||
};
|
||||
|
||||
|
||||
|
||||
List a /= List (List a)
|
||||
|
||||
a /= List a
|
||||
Loading…
Add table
Add a link
Reference in a new issue