Data.Store.TH.Internal

store-0.4.2: Fast binary serialization

Safe Haskell | None
Language | Haskell2010

Data.Store.TH.Internal

Contents

- TH functions for generating Store instances
- Misc utilties used in Store test
- Orphan instances

Synopsis

- deriveManyStoreFromStorable :: (Type -> Bool) -> Q [Dec]
- deriveTupleStoreInstance :: Int -> Dec
- deriveGenericInstance :: Cxt -> Type -> Dec
- deriveManyStorePrimVector :: Q [Dec]
- deriveManyStoreUnboxVector :: Q [Dec]
- deriveStore :: Cxt -> Type -> [DataCon] -> Q Dec
- getAllInstanceTypes1 :: Name -> Q [Type]
- isMonoType :: Type -> Bool

# TH functions for generating Store instances

deriveManyStoreFromStorable :: (Type -> Bool) -> Q [Dec] #

deriveTupleStoreInstance :: Int -> Dec #

deriveGenericInstance :: Cxt -> Type -> Dec #

deriveManyStorePrimVector :: Q [Dec] #

deriveManyStoreUnboxVector :: Q [Dec] #

deriveStore :: Cxt -> Type -> [DataCon] -> Q Dec #

# Misc utilties used in Store test

getAllInstanceTypes1 :: Name -> Q [Type] #

isMonoType :: Type -> Bool #

# Orphan instances

Deriver (Store a) # |
Methods runDeriver :: Proxy Constraint (Store a) -> Cxt -> Type -> Q [Dec] #