Idris2-boot/samples/io.idr

5 lines
120 B
Idris
Raw Normal View History

greet : IO ()
greet = do putStr "What is your name? "
name <- getLine
putStrLn ("Hello " ++ name)