data-endian-0.1: Endian-sensitive data

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Endian

Synopsis

Documentation

data Endian Source

Endianness.

Constructors

LittleEndian

Little-endian

BigEndian

Big-endian

isLittleEndian :: Endian -> Bool Source

Return True if the supplied value is LittleEndian.

isBigEndian :: Endian -> Bool Source

Return True if the supplied value is BigEndian.

toLittleEndian :: EndianSensitive α => α -> α Source

Convert from the native format to little-endian.

fromLittleEndian :: EndianSensitive α => α -> α Source

Convert from little-endian to the native format.

toBigEndian :: EndianSensitive α => α -> α Source

Convert from the native format to big-endian.

fromBigEndian :: EndianSensitive α => α -> α Source

Convert from big-endian to the native format.