ivory-0.1.0.6: Safe embedded C programming.

Safe HaskellNone
LanguageHaskell2010

Ivory.Language.CArray

Contents

Synopsis

Documentation

class (IvoryArea area, IvoryArea rep) => ToCArray area rep | area -> rep Source #

Guard invocations of toCArray.

Instances

IvoryStruct sym => ToCArray (Struct * sym) (Struct * sym) Source # 
IvoryType a => ToCArray (Stored * a) (Stored * a) Source # 
(ANat len, ToCArray area rep) => ToCArray (Array * len area) (CArray * rep) Source # 

toCArray :: forall s len area rep ref. (ANat len, ToCArray area rep, IvoryRef ref, IvoryExpr (ref s (Array len area)), IvoryExpr (ref s (CArray rep))) => ref s (Array len area) -> ref s (CArray rep) Source #

Convert from a checked array to one that can be given to a c function.

Orphan instances