Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created June 13, 2017 12:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deque-blog/8c9886530939d169ede124d077359259 to your computer and use it in GitHub Desktop.
Save deque-blog/8c9886530939d169ede124d077359259 to your computer and use it in GitHub Desktop.
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