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 {
|
||||
True : Bool ()
|
||||
data Bool () where
|
||||
True : Bool ()
|
||||
False : Bool ()
|
||||
};
|
||||
|
||||
even : Int -> Bool ();
|
||||
even x = not (odd x) ;
|
||||
not x = case x of
|
||||
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