Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Erroring 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
toErroring :: SaturatingNum a => a -> Erroring a Source #