mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-22 03:01:31 +03:00
8 lines
141 B
Idris
8 lines
141 B
Idris
|
test : () -> IO ()
|
||
|
test () = putStrLn "a test"
|
||
|
test _ = putStrLn "oopsie"
|
||
|
|
||
|
main : IO ()
|
||
|
main = do test ()
|
||
|
putStrLn "foo" >>= test
|