[Haskell-beginners] calling inpure functions from pure code