| Copyright | (c) The University of Glasgow 2001 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | libraries@haskell.org |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Word
Description
Unsigned integer types.
8-bit unsigned integer type
16-bit unsigned integer type
32-bit unsigned integer type
64-bit unsigned integer type
negate shouldnot raise an error on negative arguments.fromIntegral, which is specialized for all the common cases so should be fast enough. Coercing word types to and from integer types preserves representation, not sign.Natural.Enum instances over a bounded type such asInt (see the section of the Haskell report dealing with arithmetic sequences) also hold for theEnum instances over the variousWord types defined here.1 << 32 == 1 in some C implementations.Produced byHaddock version 2.20.0