ivory-0.1.0.3: Safe embedded C programming.

Safe HaskellNone
LanguageHaskell2010

Ivory.Language.Syntax.Type

Documentation

data Type Source

Constructors

TyVoid

Unit type

TyInt IntSize

Signed ints

TyWord WordSize

Unsigned ints

TyIndex Integer

Indices with an upper bound

TyBool

Booleans

TyChar

Characters

TyFloat

Floats

TyDouble

Doubles

TyProc Type [Type]

Procedures

TyRef Type

References

TyConstRef Type

Constant References

TyPtr Type

Pointers

TyArr Int Type

Arrays

TyStruct String

Structures

TyCArray Type

C Arrays

TyOpaque

Opaque type---not implementable.

data Typed a Source

Constructors

Typed 

Fields

tType :: Type
 
tValue :: a
 

Instances

Functor Typed Source 
Eq a => Eq (Typed a) Source 
Ord a => Ord (Typed a) Source 
Show a => Show (Typed a) Source 
Lift a0 => Lift (Typed a) Source