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

Test.IOSpec.Surrogate

Description

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

Synopsis

# The IOSpec type

type IOSpec f a = IO a Source #

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 #