Copyright | Ross Meikleham |
---|---|
License | BSD-style |
Maintainer | RossMeikleham@hotmail.co.uk |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
The Tainted type, and associated operations.
Documentation
The Tainted
type encapsulates a value. A value of type
either contains a "clean" value of type Tainted
aa
(represented as
),
or it contains a "dirty" value of type Clean
aa
(represented as
). Dirty
a
The Tainted
type is also a monad. Once the "dirty" state has been
reached, and clean operations performed themselves create a "dirty"
value.