churf/sample-programs/basic-6.crf
2023-03-29 11:26:47 +02:00

10 lines
158 B
Text

data Bool () where {
True : Bool ()
False : Bool ()
};
main : Bool () -> a -> Int ;
main b = case b of {
False => (\x. 1);
True => \x. 0;
};