ivory-0.1.0.6: Safe embedded C programming.

Safe HaskellNone
LanguageHaskell2010

Ivory.Language.Uint

Synopsis

Documentation

newtype Uint8 Source #

8-bit words.

Constructors

Uint8 

Fields

Instances

Bounded Uint8 Source # 
Num Uint8 Source # 
Show Uint8 Source # 

Methods

showsPrec :: Int -> Uint8 -> ShowS #

show :: Uint8 -> String #

showList :: [Uint8] -> ShowS #

IvoryExpr Uint8 Source # 

Methods

wrapExpr :: Expr -> Uint8 Source #

IvoryVar Uint8 Source # 
IvoryType Uint8 Source # 
IvoryOrd Uint8 Source # 
IvoryEq Uint8 Source # 
IvoryIntegral Uint8 Source # 

Methods

iDiv :: Uint8 -> Uint8 -> Uint8 Source #

(.%) :: Uint8 -> Uint8 -> Uint8 Source #

IvoryStore Uint8 Source # 
Default Uint8 Source # 

Methods

defaultVal :: Uint8

IvoryBits Uint8 Source # 
IvoryZeroVal Uint8 Source # 
IvoryInit Uint8 Source # 

Methods

ival :: Uint8 -> Init (Stored * Uint8) Source #

SignCast Sint8 Uint8 Source # 

Methods

signCast :: Sint8 -> Uint8 Source #

SignCast Uint8 Sint8 Source # 

Methods

signCast :: Uint8 -> Sint8 Source #

SafeCast Uint8 Sint64 Source # 
SafeCast Uint8 Sint32 Source # 
SafeCast Uint8 Sint16 Source # 
SafeCast Uint8 Uint64 Source # 
SafeCast Uint8 Uint32 Source # 
SafeCast Uint8 Uint16 Source # 
SafeCast Uint8 Uint8 Source # 

Methods

safeCast :: Uint8 -> Uint8 Source #

SafeCast Uint8 IDouble Source # 
SafeCast Uint8 IFloat Source # 
SafeCast IBool Uint8 Source # 

Methods

safeCast :: IBool -> Uint8 Source #

TwosComplementCast Uint8 Sint8 Source # 
BitCast Uint64 Uint8 Source # 

Methods

bitCast :: Uint64 -> Uint8 Source #

BitCast Uint32 Uint8 Source # 

Methods

bitCast :: Uint32 -> Uint8 Source #

BitCast Uint16 Uint8 Source # 

Methods

bitCast :: Uint16 -> Uint8 Source #

BitCast Uint8 Uint8 Source # 

Methods

bitCast :: Uint8 -> Uint8 Source #

BitSplit Uint16 Uint8 Source # 

newtype Uint16 Source #

16-bit words.

Constructors

Uint16 

Fields

Instances

Bounded Uint16 Source # 
Num Uint16 Source # 
Show Uint16 Source # 
IvoryExpr Uint16 Source # 

Methods

wrapExpr :: Expr -> Uint16 Source #

IvoryVar Uint16 Source # 
IvoryType Uint16 Source # 
IvoryOrd Uint16 Source # 
IvoryEq Uint16 Source # 
IvoryIntegral Uint16 Source # 
IvoryStore Uint16 Source # 
Default Uint16 Source # 

Methods

defaultVal :: Uint16

IvoryBits Uint16 Source # 
IvoryZeroVal Uint16 Source # 
IvoryInit Uint16 Source # 
SignCast Sint16 Uint16 Source # 
SignCast Uint16 Sint16 Source # 
SafeCast Uint16 Sint64 Source # 
SafeCast Uint16 Sint32 Source # 
SafeCast Uint16 Uint64 Source # 
SafeCast Uint16 Uint32 Source # 
SafeCast Uint16 Uint16 Source # 
SafeCast Uint16 IDouble Source # 
SafeCast Uint16 IFloat Source # 
SafeCast Uint8 Uint16 Source # 
SafeCast IBool Uint16 Source # 
TwosComplementCast Uint16 Sint16 Source # 
BitCast Uint64 Uint16 Source # 
BitCast Uint32 Uint16 Source # 
BitCast Uint16 Uint16 Source # 
BitCast Uint16 Uint8 Source # 

Methods

bitCast :: Uint16 -> Uint8 Source #

BitSplit Uint32 Uint16 Source # 
BitSplit Uint16 Uint8 Source # 

newtype Uint32 Source #

32-bit words.

Constructors

Uint32 

Fields

Instances

Bounded Uint32 Source # 
Num Uint32 Source # 
Show Uint32 Source # 
IvoryExpr Uint32 Source # 

Methods

wrapExpr :: Expr -> Uint32 Source #

IvoryVar Uint32 Source # 
IvoryType Uint32 Source # 
IvoryOrd Uint32 Source # 
IvoryEq Uint32 Source # 
IvoryIntegral Uint32 Source # 
IvoryStore Uint32 Source # 
Default Uint32 Source # 

Methods

defaultVal :: Uint32

IvoryBits Uint32 Source # 
IvoryZeroVal Uint32 Source # 
IvoryInit Uint32 Source # 
SignCast Sint32 Uint32 Source # 
SignCast Uint32 Sint32 Source # 
SafeCast Uint32 Sint64 Source # 
SafeCast Uint32 Uint64 Source # 
SafeCast Uint32 Uint32 Source # 
SafeCast Uint32 IDouble Source # 
SafeCast Uint32 IFloat Source # 
SafeCast Uint16 Uint32 Source # 
SafeCast Uint8 Uint32 Source # 
SafeCast IBool Uint32 Source # 
TwosComplementCast Uint32 Sint32 Source # 
BitCast Uint64 Uint32 Source # 
BitCast Uint32 Uint32 Source # 
BitCast Uint32 Uint16 Source # 
BitCast Uint32 Uint8 Source # 

Methods

bitCast :: Uint32 -> Uint8 Source #

BitSplit Uint64 Uint32 Source # 
BitSplit Uint32 Uint16 Source # 

newtype Uint64 Source #

64-bit words.

Constructors

Uint64 

Fields

Instances

Bounded Uint64 Source # 
Num Uint64 Source # 
Show Uint64 Source # 
IvoryExpr Uint64 Source # 

Methods

wrapExpr :: Expr -> Uint64 Source #

IvoryVar Uint64 Source # 
IvoryType Uint64 Source # 
IvoryOrd Uint64 Source # 
IvoryEq Uint64 Source # 
IvoryIntegral Uint64 Source # 
IvoryStore Uint64 Source # 
Default Uint64 Source # 

Methods

defaultVal :: Uint64

IvoryBits Uint64 Source # 
IvoryZeroVal Uint64 Source # 
IvoryInit Uint64 Source # 
SignCast Sint64 Uint64 Source # 
SignCast Uint64 Sint64 Source # 
SafeCast Uint64 Uint64 Source # 
SafeCast Uint64 IDouble Source # 
SafeCast Uint32 Uint64 Source # 
SafeCast Uint16 Uint64 Source # 
SafeCast Uint8 Uint64 Source # 
SafeCast IBool Uint64 Source # 
TwosComplementCast Uint64 Sint64 Source # 
BitCast Uint64 Uint64 Source # 
BitCast Uint64 Uint32 Source # 
BitCast Uint64 Uint16 Source # 
BitCast Uint64 Uint8 Source # 

Methods

bitCast :: Uint64 -> Uint8 Source #

BitSplit Uint64 Uint32 Source #