Skip to content

Instantly share code, notes, and snippets.

@vhxs
Created December 1, 2022 23:08
Show Gist options
  • Save vhxs/427dc957018f20d17206385d9550db99 to your computer and use it in GitHub Desktop.
Save vhxs/427dc957018f20d17206385d9550db99 to your computer and use it in GitHub Desktop.
Read line by line in Haskell
main = do
content <- readFile "input.txt"
mapM_ putStrLn (lines content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment