th-utilities-0.2.0.1: Collection of useful functions for use with Template Haskell
TH.Derive.Storable
Contents
Description
Implementation of a Storable deriver for data types. This works for any non-recursive datatype which has Storable fields.
Storable
Most users won't need to import this module directly. Instead, use derive / Deriving to create Storable instances.
derive
Deriving
Synopsis
makeStorableInst :: Cxt -> Type -> Q [Dec] Source #
Implementation used for runDeriver.
runDeriver
Methods
runDeriver :: Proxy Constraint (Storable a) -> Cxt -> Type -> Q [Dec] Source #