HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleram-0.22.1Haskell2010

Data.Memory.Endian

Synopsis
  • Packageram-0.22.1
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceEndian.hs
datadata Endianness

represent the CPU endianness

Big endian system stores bytes with the MSB as the first byte. Little endian system stores bytes with the LSB as the first byte.

middle endian is purposely avoided.

Instances2Eq, Show
newtypenewtype BE a

Big Endian value

Constructors

Instances3Eq, Show, Storable
  • Eq a => Eq (BE a)Defined in ram-0.22.1 · Data.Memory.Endian
  • Show a => Show (BE a)Defined in ram-0.22.1 · Data.Memory.Endian
  • Storable a => Storable (BE a)Defined in ram-0.22.1 · Data.Memory.Endian
newtypenewtype LE a

Little Endian value

Constructors

Instances3Eq, Show, Storable
  • Eq a => Eq (LE a)Defined in ram-0.22.1 · Data.Memory.Endian
  • Show a => Show (LE a)Defined in ram-0.22.1 · Data.Memory.Endian
  • Storable a => Storable (LE a)Defined in ram-0.22.1 · Data.Memory.Endian