HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulememory-0.18.0Haskell2010

Data.Memory.Endian

Synopsis
  • Packagememory-0.18.0
  • 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 memory-0.18.0 · Data.Memory.Endian
  • Show a => Show (BE a)Defined in memory-0.18.0 · Data.Memory.Endian
  • Storable a => Storable (BE a)Defined in memory-0.18.0 · Data.Memory.Endian
newtypenewtype LE a

Little Endian value

Constructors

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