Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created November 30, 2015 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clauswitt/4b97bc44a5a79b41dde6 to your computer and use it in GitHub Desktop.
Save clauswitt/4b97bc44a5a79b41dde6 to your computer and use it in GitHub Desktop.
import System.IO
main = myLoop
myLoop = do done <- isEOF
if done
then putStrLn ""
else do inp <- getLine
putStrLn inp
myLoop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment