[Haskell-cafe] Replacing IO with pure values

Paul Brauner polux2001 at gmail.com
Tue Nov 25 11:56:56 UTC 2014


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.

Would be a nice use case for ML-style modules btw :)

On Mon Nov 24 2014 at 9:46:29 PM martin <martin.drautzburg at web.de> wrote:

> Thanks to all. This helped a lot.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141125/1081e13e/attachment.html>


More information about the Haskell-Cafe mailing list