Like it says in the tile: what does The last statement in a 'do' construct must be an expression
mean? I ended my do
block with a putStrLn
like it shows in several examples I've seen, and i get an error.
Code:
main = do
args <- getArgs
file <-readFile "TWL06.txt"
putStrLn results
And i just realized why it's like that.... Thanks to my dumb editor, the first line had 4 spaces and the otehr two had a tab!