Portability | portable (Haskell2010) |
---|---|
Stability | provisional |
Maintainer | julian.fleischer@fu-berlin.de |
Safe Haskell | None |
The ternary value type, which can treither hold a value, nothing, or a special value describing an error condition.
- data Value a
- = Value a
- | NoValue
- | Fail JThrowable
- value :: b -> (JThrowable -> b) -> (a -> b) -> Value a -> b
Documentation
A ternary value type to hold one of two possible value types or none at all.
Value a | An actual value |
NoValue | No value |
Fail JThrowable | A value describing the error |
UnsafeCast a => ObjectResult (Value a) |