binrep-0.3.1: Encode precise binary representations directly in types
Safe HaskellSafe-Inferred
LanguageHaskell2010

Binrep.Type.Common

Synopsis

Documentation

data Endianness Source #

Byte order.

Constructors

BE

big endian, MSB first. e.g. most network protocols

LE

little endian, MSB last. e.g. most processor architectures

Instances

Instances details
Data Endianness Source # 
Instance details

Defined in Binrep.Type.Common

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Endianness -> c Endianness #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Endianness #

toConstr :: Endianness -> Constr #

dataTypeOf :: Endianness -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Endianness) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Endianness) #

gmapT :: (forall b. Data b => b -> b) -> Endianness -> Endianness #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Endianness -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Endianness -> r #

gmapQ :: (forall d. Data d => d -> u) -> Endianness -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Endianness -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Endianness -> m Endianness #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Endianness -> m Endianness #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Endianness -> m Endianness #

Generic Endianness Source # 
Instance details

Defined in Binrep.Type.Common

Associated Types

type Rep Endianness :: Type -> Type #

Show Endianness Source # 
Instance details

Defined in Binrep.Type.Common

Eq Endianness Source # 
Instance details

Defined in Binrep.Type.Common

type Rep Endianness Source # 
Instance details

Defined in Binrep.Type.Common

type Rep Endianness = D1 ('MetaData "Endianness" "Binrep.Type.Common" "binrep-0.3.1-inplace" 'False) (C1 ('MetaCons "BE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LE" 'PrefixI 'False) (U1 :: Type -> Type))