| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Test.IOSpec.Types
Description
This module contains the basic data types underlying the
IOSpec library. Most of the types and classes in this module
are described in
https://webspace.science.uu.nl/~swier004//publications/2008-jfp.pdf
The IOSpec type.
A value of type IOSpec f a is either a pure value of type a
or some effect, determined by f. Crucially, IOSpec f is a
monad, provided f is a functor.
foldIOSpec :: Functor f => (a -> b) -> (f b -> b) -> IOSpec f a -> b Source #
The fold over IOSpec values.
Coproducts of functors
data (f :+: g) x infixr 5 Source #
The coproduct of functors
Instances
Injections from one functor to another
class (Functor sub, Functor sup) => sub :<: sup Source #
The (:<:) class
Minimal complete definition
inj