Wrapper-evidence for property p.
Moduledata-checked-0.3Haskell98
Data.Checked.Strict
A version of Checked that requires client code to provide
a non-bottom value of the property index type to use trust*
functions.
- 1 type
- 1 class
- 6 values
- Packagedata-checked-0.3
- Exports8
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceStrict.hs
Use when the property can be deduced without a runtime check. Note that p is evaluated to WHNF, so you can't use undefined.
Apply a fuction that preserves the property to the checked value. Note that p is evaluated to WHNF, so you can't use undefined.
Unwrap the checked value.
Wrap the value if the property holds.
Rewrap a value into the less strict Checked type.