[Haskell-beginners] A basic misunderstanding of how to program with IO