Copyright | (c) ForSyDe Group KTH 2007-2008 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | forsyde-dev@ict.kth.se |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
The AbstExt
is used to extend existing data types with the value
'absent', which models the absence of a value.
Documentation
The data type AbstExt
has two constructors. The constructor Abst
is used to model the absence of a value, while the constructor Prst
is used to model present values.
Instances
Functor AbstExt Source # | |
Eq a => Eq (AbstExt a) Source # | |
Read a => Read (AbstExt a) Source # | |
Show a => Show (AbstExt a) Source # | The data type |
fromAbstExt :: a -> AbstExt a -> a Source #
The function fromAbstExt
converts a value from a extended value.
psi :: (a -> b) -> AbstExt a -> AbstExt b Source #
The function psi
is identical to abstExtFunc
and should be used in future.
abstExtFunc :: (a -> b) -> AbstExt a -> AbstExt b Source #
The function abstExtFunc
extends a function in order to process absent extended values. If the input is ("bottom"), the output will also be ("bottom").