License | BSD-style |
---|---|
Maintainer | Haskell Foundation |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Set endianness tag to a given primitive. This will help for serialising data for protocols (such as the network protocols).
Documentation
Class of types that can be byte-swapped.
e.g. Word16, Word32, Word64
byteSwap
Big Endian
Big Endian value
Instances
Little Endian
Little Endian value
Instances
System Endianness
data Endianness Source #
Instances
Eq Endianness Source # | |
Defined in Basement.Endianness (==) :: Endianness -> Endianness -> Bool # (/=) :: Endianness -> Endianness -> Bool # | |
Show Endianness Source # | |
Defined in Basement.Endianness showsPrec :: Int -> Endianness -> ShowS # show :: Endianness -> String # showList :: [Endianness] -> ShowS # |
endianness :: Endianness Source #
endianness of the current architecture