[Haskell-beginners] testing IO code