| Copyright | (c) Erich Gut |
|---|---|
| License | BSD3 |
| Maintainer | zerich.gut@gmail.com |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
OAlg.Control.HNFData
Description
reducing a value to head normal form. This is much weaker then Control.DeepSeq.
Documentation
fromHNFValue :: HNFValue x -> x Source #
from head normal form.
Property Let x' be in then holds:HNFValue x
- If
x'matchesthen the result ofHNFValuexisfromHNFValuex'x. - If
x'matchesthen evaluationFailureewill end up in a throwingfromHNFValuex'e.
class HNFData x where Source #
data reducible to head normal form.
Methods
tries to reduce a value to its head normal form, throwing an Exception for
undefined values.
Instances
| HNFData Statement Source # | |
Defined in OAlg.Data.Statement.Definition | |
| HNFData () Source # | |
Defined in OAlg.Control.HNFData | |
| HNFData Bool Source # | |
Defined in OAlg.Control.HNFData | |
| HNFData (X x) Source # | |
Defined in OAlg.Data.X | |
| HNFData [x] Source # | |
Defined in OAlg.Control.HNFData | |