Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
double_it : IO ()
double_it = do
input <- getLine
let n = the Int (cast input)
printLn (n * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment