[Haskell-beginners] help with IO and guards