Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Word8
- data Word16
- data Word32
- data Word64 = W64# Word#
- data Word = W# Word#
- pattern W8# :: Word# -> Word8
- pattern W16# :: Word# -> Word16
- pattern W32# :: Word# -> Word32
- uncheckedShiftL64# :: Word# -> Int# -> Word#
- uncheckedShiftRL64# :: Word# -> Int# -> Word#
- byteSwap16 :: Word16 -> Word16
- byteSwap32 :: Word32 -> Word32
- byteSwap64 :: Word64 -> Word64
- bitReverse8 :: Word8 -> Word8
- bitReverse16 :: Word16 -> Word16
- bitReverse32 :: Word32 -> Word32
- bitReverse64 :: Word64 -> Word64
- eqWord :: Word -> Word -> Bool
- neWord :: Word -> Word -> Bool
- gtWord :: Word -> Word -> Bool
- geWord :: Word -> Word -> Bool
- ltWord :: Word -> Word -> Bool
- leWord :: Word -> Word -> Bool
- eqWord8 :: Word8 -> Word8 -> Bool
- neWord8 :: Word8 -> Word8 -> Bool
- gtWord8 :: Word8 -> Word8 -> Bool
- geWord8 :: Word8 -> Word8 -> Bool
- ltWord8 :: Word8 -> Word8 -> Bool
- leWord8 :: Word8 -> Word8 -> Bool
- eqWord16 :: Word16 -> Word16 -> Bool
- neWord16 :: Word16 -> Word16 -> Bool
- gtWord16 :: Word16 -> Word16 -> Bool
- geWord16 :: Word16 -> Word16 -> Bool
- ltWord16 :: Word16 -> Word16 -> Bool
- leWord16 :: Word16 -> Word16 -> Bool
- eqWord32 :: Word32 -> Word32 -> Bool
- neWord32 :: Word32 -> Word32 -> Bool
- gtWord32 :: Word32 -> Word32 -> Bool
- geWord32 :: Word32 -> Word32 -> Bool
- ltWord32 :: Word32 -> Word32 -> Bool
- leWord32 :: Word32 -> Word32 -> Bool
- eqWord64 :: Word64 -> Word64 -> Bool
- neWord64 :: Word64 -> Word64 -> Bool
- gtWord64 :: Word64 -> Word64 -> Bool
- geWord64 :: Word64 -> Word64 -> Bool
- ltWord64 :: Word64 -> Word64 -> Bool
- leWord64 :: Word64 -> Word64 -> Bool
Documentation
8-bit unsigned integer type
Instances
16-bit unsigned integer type
Instances
32-bit unsigned integer type
Instances
64-bit unsigned integer type
Instances
Instances
Bounded Word | Since: base-2.1 |
Enum Word | Since: base-2.1 |
Eq Word | |
Integral Word | Since: base-2.1 |
Num Word | Since: base-2.1 |
Ord Word | |
Read Word | Since: base-4.5.0.0 |
Real Word | Since: base-2.1 |
Defined in GHC.Real toRational :: Word -> Rational # | |
Show Word | Since: base-2.1 |
Foldable (UWord :: Type -> Type) | Since: base-4.9.0.0 |
Defined in Data.Foldable fold :: Monoid m => UWord m -> m # foldMap :: Monoid m => (a -> m) -> UWord a -> m # foldMap' :: Monoid m => (a -> m) -> UWord a -> m # foldr :: (a -> b -> b) -> b -> UWord a -> b # foldr' :: (a -> b -> b) -> b -> UWord a -> b # foldl :: (b -> a -> b) -> b -> UWord a -> b # foldl' :: (b -> a -> b) -> b -> UWord a -> b # foldr1 :: (a -> a -> a) -> UWord a -> a # foldl1 :: (a -> a -> a) -> UWord a -> a # elem :: Eq a => a -> UWord a -> Bool # maximum :: Ord a => UWord a -> a # minimum :: Ord a => UWord a -> a # | |
Traversable (UWord :: Type -> Type) | Since: base-4.9.0.0 |
Shifts
uncheckedShiftL64# :: Word# -> Int# -> Word# #
uncheckedShiftRL64# :: Word# -> Int# -> Word# #
Byte swapping
byteSwap16 :: Word16 -> Word16 #
Reverse order of bytes in Word16
.
Since: base-4.7.0.0
byteSwap32 :: Word32 -> Word32 #
Reverse order of bytes in Word32
.
Since: base-4.7.0.0
byteSwap64 :: Word64 -> Word64 #
Reverse order of bytes in Word64
.
Since: base-4.7.0.0
Bit reversal
bitReverse8 :: Word8 -> Word8 #
Reverse the order of the bits in a Word8
.
Since: base-4.12.0.0
bitReverse16 :: Word16 -> Word16 #
Reverse the order of the bits in a Word16
.
Since: base-4.12.0.0
bitReverse32 :: Word32 -> Word32 #
Reverse the order of the bits in a Word32
.
Since: base-4.12.0.0
bitReverse64 :: Word64 -> Word64 #
Reverse the order of the bits in a Word64
.
Since: base-4.12.0.0
Equality operators
See GHC.Classes#matching_overloaded_methods_in_rules