| 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.Erroring
Description
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 #