Class of types that can be byte-swapped.
e.g. Word16, Word32, Word64
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Modulebasement-0.0.16Haskell2010
Set endianness tag to a given primitive. This will help for serialising data for protocols (such as the network protocols).
Class of types that can be byte-swapped.
e.g. Word16, Word32, Word64
Eq a => Eq (BE a)Defined in basement-0.0.16 · Basement.Endianness(ByteSwap a, Ord a) => Ord (BE a)Defined in basement-0.0.16 · Basement.EndiannessShow a => Show (BE a)Defined in basement-0.0.16 · Basement.EndiannessBits a => Bits (BE a)Defined in basement-0.0.16 · Basement.EndiannessPrimType a => PrimType (BE a)Defined in basement-0.0.16 · Basement.PrimTypeNormalForm a => NormalForm (BE a)Defined in basement-0.0.16 · Basement.NormalFormPrimMemoryComparable a => PrimMemoryComparable (BE a)Defined in basement-0.0.16 · Basement.PrimTypetype PrimSize (BE a) = PrimSize aDefined in basement-0.0.16 · Basement.PrimTypeConvert a value in cpu endianess to big endian
Convert from a big endian value to the cpu endianness
Eq a => Eq (LE a)Defined in basement-0.0.16 · Basement.Endianness(ByteSwap a, Ord a) => Ord (LE a)Defined in basement-0.0.16 · Basement.EndiannessShow a => Show (LE a)Defined in basement-0.0.16 · Basement.EndiannessBits a => Bits (LE a)Defined in basement-0.0.16 · Basement.EndiannessPrimType a => PrimType (LE a)Defined in basement-0.0.16 · Basement.PrimTypeNormalForm a => NormalForm (LE a)Defined in basement-0.0.16 · Basement.NormalFormPrimMemoryComparable a => PrimMemoryComparable (LE a)Defined in basement-0.0.16 · Basement.PrimTypetype PrimSize (LE a) = PrimSize aDefined in basement-0.0.16 · Basement.PrimTypeConvert a value in cpu endianess to little endian
Convert from a little endian value to the cpu endianness
Eq EndiannessDefined in basement-0.0.16 · Basement.EndiannessShow EndiannessDefined in basement-0.0.16 · Basement.Endiannessendianness of the current architecture