| Copyright | (c) 2010 Well-Typed LLP |
|---|---|
| License | BSD3 |
| Maintainer | Andres Loeh <andres@well-typed.com> |
| Stability | experimental |
| Portability | non-portable (GHC Extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.SafeInt
Description
Defines a variant of Haskell's Int type that is overflow-checked. If an overflow or arithmetic error occurs, a run-time exception is thrown.
Documentation
Instances
| Bounded SafeInt Source | |
| Enum SafeInt Source | |
| Eq SafeInt Source | |
| Integral SafeInt Source | |
| Num SafeInt Source | In the |
| Ord SafeInt Source | |
| Read SafeInt Source | |
| Real SafeInt Source | |
| Show SafeInt Source |