Idris2/tests/idris2/error024/Error1.idr

6 lines
75 B
Idris

foo : Int -> IO Int
foo x = pure x
main : IO ()
main = putStrLn !(foo 10)