ivory-0.1.0.3: Safe embedded C programming.

Safe HaskellNone
LanguageHaskell2010

Ivory.Language.Struct

Synopsis

Documentation

newtype StructDef sym Source

Constructors

StructDef 

Fields

getStructDef :: Struct
 

type family StructName a :: Symbol Source

Instances

type StructName (Struct * sym) = sym Source 

class (IvoryArea (Struct sym), ASymbol sym) => IvoryStruct sym where Source

Methods

structDef :: StructDef sym Source

newtype Label sym field Source

Struct field labels.

Constructors

Label 

Fields

getLabel :: String
 

Instances

Eq (Label sym field) Source 

(~>) :: forall ref s sym field. (IvoryStruct sym, IvoryRef ref, IvoryExpr (ref s (Struct sym)), IvoryExpr (ref s field)) => ref s (Struct sym) -> Label sym field -> ref s field Source

Label indexing in a structure.