Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Erroring a
- fromErroring :: Erroring a -> a
- toErroring :: SaturatingNum a => a -> Erroring a
Documentation
An erroring number type is one where all operations return a
XExecption
if they would go out of bounds for the
underlying type.
Numbers can be converted to error by default using toErroring
.
Instances
fromErroring :: Erroring a -> a Source #
toErroring :: SaturatingNum a => a -> Erroring a Source #