IOSpec-0.2.5: A pure specification of the IO monad.

Safe HaskellNone




This module contains a few type signatures to help replace pure specifications by their effectful counterparts.


The IOSpec type

type IOSpec f a = IO aSource

The IOSpec f a is merely type synonym for IO a. Once you've tested a module, you can use these definitions to avoid having to change your type signatures.

Note that because this definition of IOSpec ignores its f argument, each of ForkS, MVarS, etc., is simply an empty data type.

The specifications

data f :+: g Source