Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Foreign.CStorable
Description
This primarily exports the CStorable typeclass, which may have its
methods automatically defaulted if it has a Generic instance.
Then, this instance can be transfered via the Storable
constructor.
Documentation
class CStorable a where Source
This typeclass is basically just a duplicate of Storable
. It exists
because I can't easily modify Storable
, as it is part of base.
Minimal complete definition
Nothing
Instances
newtype StorableWrap a Source
Applying the Storable
constructor to something which is Storable
gives it a corresponding CStorable instance.
Constructors
Storable a |
Instances
Storable a => CStorable (StorableWrap a) | Translates a Storable instance to a CStorable instance |