Fix sample-program
This commit is contained in:
parent
c998241c65
commit
03bb6a8534
1 changed files with 9 additions and 14 deletions
|
|
@ -1,20 +1,15 @@
|
||||||
data Bool () where {
|
data Bool () where
|
||||||
True : Bool ()
|
True : Bool ()
|
||||||
False : Bool ()
|
False : Bool ()
|
||||||
};
|
|
||||||
|
|
||||||
even : Int -> Bool ();
|
not x = case x of
|
||||||
even x = not (odd x) ;
|
True => False
|
||||||
|
False => True
|
||||||
|
|
||||||
|
even : Int -> Bool ()
|
||||||
|
even x = not (odd x)
|
||||||
|
odd x = not (even x)
|
||||||
|
|
||||||
odd x = not (even x) ;
|
|
||||||
|
|
||||||
not x = case x of {
|
|
||||||
True => False;
|
|
||||||
False => True;
|
|
||||||
};
|
|
||||||
|
|
||||||
f = g;
|
|
||||||
g = f;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue