HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebyteorder-1.0.4Haskell98

System.ByteOrder

  • 1 type
  • 1 value
  • Packagebyteorder-1.0.4
  • Exports2
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceByteOrder.hs
datadata ByteOrder
#

Indicates the byte-ordering for a 4-byte value, where '1' indicates the most-significant byte and '4' indicates the least significant byte.

In this format, big endian byte order would be represented as: (1,2,3,4).

For convinience, the most common cases (BigEndian and LittleEndian) are provided their own constructors.

Instances4Eq, Ord, Read, Show