| Copyright | (C) 2021-2026 QBayLogic B.V. |
|---|---|
| License | BSD2 (see the file LICENSE) |
| Maintainer | QBayLogic B.V. <devops@qbaylogic.com> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Clash.Num.Zeroing
Description
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 #