Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Zeroing a
- fromZeroing :: Zeroing a -> a
- toZeroing :: SaturatingNum a => a -> Zeroing a
Documentation
A zeroing number type is one where all operations return zero if they go out of bounds for the underlying type.
Numbers can be converted to zero by default using toZeroing
.
Instances
fromZeroing :: Zeroing a -> a Source #
toZeroing :: SaturatingNum a => a -> Zeroing a Source #