Skip to content

Instantly share code, notes, and snippets.

@deepakduggirala
Created October 18, 2018 19:33
Show Gist options
  • Save deepakduggirala/f76fb7279d02baa8929eb83d5343b623 to your computer and use it in GitHub Desktop.
Save deepakduggirala/f76fb7279d02baa8929eb83d5343b623 to your computer and use it in GitHub Desktop.
Haskell IO - Read a number per line
f = id
main = do
inputdata <- getContents
mapM_ (putStrLn. show). f. map read. lines $ inputdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment