Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- class Word64Encode a where
- encode64 :: a -> Word64
- decode64 :: Word64 -> a
- encodeNonNegative64 :: a -> Word64
- decodeNonNegative64 :: Word64 -> a
Documentation
class Word64Encode a where Source #
encode64
/ decode64
Int | - 4 * 10^18 | 4 * 10^18 |
(Int, Int) | -10^9 | 10^9 |
(Int, Int, Int) | -10^6 | 10^6 |
encodeNonNegative64
/ decodeNonNegative64
Int | 0 | 9 * 10^18 |
(Int, Int) | 0 | 2 * 10^9 |
(Int, Int, Int) | 0 | 2 * 10^6 |
encode64 :: a -> Word64 Source #
decode64 :: Word64 -> a Source #
encodeNonNegative64 :: a -> Word64 Source #
for non-negative
decodeNonNegative64 :: Word64 -> a Source #
for non-negative
Instances
Word64Encode Int Source # | |
Word64Encode (Int, Int) Source # | |
Word64Encode (Int, Int, Int) Source # | |