storable-endian-0.2.6: Storable instances with endianness

Copyright(c) Eugene Kirpichov 2010
LicenseNew BSD
MaintainerEugene Kirpichov <ekirpichov@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Data.Storable.Endian

Description

Storable instances with endianness.

Documentation

newtype LittleEndian a Source #

Constructors

LE 

Fields

Instances

Enum a => Enum (LittleEndian a) Source # 
Eq a => Eq (LittleEndian a) Source # 
Floating a => Floating (LittleEndian a) Source # 
Fractional a => Fractional (LittleEndian a) Source # 
Integral a => Integral (LittleEndian a) Source # 
Num a => Num (LittleEndian a) Source # 
Ord a => Ord (LittleEndian a) Source # 
Read a => Read (LittleEndian a) Source # 
Real a => Real (LittleEndian a) Source # 
RealFloat a => RealFloat (LittleEndian a) Source # 
RealFrac a => RealFrac (LittleEndian a) Source # 
Show a => Show (LittleEndian a) Source # 
Generic (LittleEndian a) Source # 

Associated Types

type Rep (LittleEndian a) :: * -> * #

Methods

from :: LittleEndian a -> Rep (LittleEndian a) x #

to :: Rep (LittleEndian a) x -> LittleEndian a #

(HasLittleEndian a, Storable a) => Storable (LittleEndian a) Source # 
type Rep (LittleEndian a) Source # 
type Rep (LittleEndian a) = D1 (MetaData "LittleEndian" "Data.Storable.Endian" "storable-endian-0.2.6-DGZd5ulxEne1VudTqgMzI7" True) (C1 (MetaCons "LE" PrefixI True) (S1 (MetaSel (Just Symbol "getLittleEndian") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))

newtype BigEndian a Source #

Constructors

BE 

Fields

Instances

Enum a => Enum (BigEndian a) Source # 
Eq a => Eq (BigEndian a) Source # 

Methods

(==) :: BigEndian a -> BigEndian a -> Bool #

(/=) :: BigEndian a -> BigEndian a -> Bool #

Floating a => Floating (BigEndian a) Source # 
Fractional a => Fractional (BigEndian a) Source # 
Integral a => Integral (BigEndian a) Source # 
Num a => Num (BigEndian a) Source # 
Ord a => Ord (BigEndian a) Source # 
Read a => Read (BigEndian a) Source # 
Real a => Real (BigEndian a) Source # 
RealFloat a => RealFloat (BigEndian a) Source # 
RealFrac a => RealFrac (BigEndian a) Source # 

Methods

properFraction :: Integral b => BigEndian a -> (b, BigEndian a) #

truncate :: Integral b => BigEndian a -> b #

round :: Integral b => BigEndian a -> b #

ceiling :: Integral b => BigEndian a -> b #

floor :: Integral b => BigEndian a -> b #

Show a => Show (BigEndian a) Source # 
Generic (BigEndian a) Source # 

Associated Types

type Rep (BigEndian a) :: * -> * #

Methods

from :: BigEndian a -> Rep (BigEndian a) x #

to :: Rep (BigEndian a) x -> BigEndian a #

(HasBigEndian a, Storable a) => Storable (BigEndian a) Source # 

Methods

sizeOf :: BigEndian a -> Int #

alignment :: BigEndian a -> Int #

peekElemOff :: Ptr (BigEndian a) -> Int -> IO (BigEndian a) #

pokeElemOff :: Ptr (BigEndian a) -> Int -> BigEndian a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (BigEndian a) #

pokeByteOff :: Ptr b -> Int -> BigEndian a -> IO () #

peek :: Ptr (BigEndian a) -> IO (BigEndian a) #

poke :: Ptr (BigEndian a) -> BigEndian a -> IO () #

type Rep (BigEndian a) Source # 
type Rep (BigEndian a) = D1 (MetaData "BigEndian" "Data.Storable.Endian" "storable-endian-0.2.6-DGZd5ulxEne1VudTqgMzI7" True) (C1 (MetaCons "BE" PrefixI True) (S1 (MetaSel (Just Symbol "getBigEndian") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))