There's https://hackage.haskell.org/package/IOSpec which provides a pure implementation of the IO monad. Once you're done testing your code you can import Test.IOSpec.Surrogate which declares type IOSpec f a = IO a.
Thanks to all. This helped a lot.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe