I\'m currently working on project with Haskell, and have found myself some trouble. I\'m supposed to read and insert into a list each line in a \"dictionary.txt\" file, but
Unless this is for homework or something, there's no reason to use so much effort. Reuse is lazy!
getLines = liftM lines . readFile
main = do
list <- getLines "dictionary.txt"
mapM_ putStrLn list
But as you seem to still be learning Haskell, it is important for you to understand what CesarB has written.