Created
December 1, 2022 23:08
-
-
Save vhxs/427dc957018f20d17206385d9550db99 to your computer and use it in GitHub Desktop.
Read line by line in Haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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