churf/sample-programs/example-programs/ex4.crf
2023-04-29 15:52:37 +02:00

9 lines
159 B
Text

data Maybe () where
Just : Int -> Maybe ()
Nothing : Maybe ()
demoFunc x = case x of
Just x => x + 24
Nothing => 0
main = demoFunc Nothing