| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rel8.Internal.Generic.Construction.Record
Documentation
type family GConstruct (f :: Type -> Exp Type) (rep :: Type -> Type) r where ... Source #
Equations
| GConstruct f (M1 _1 _2 rep) r = GConstruct f rep r | |
| GConstruct f (a :*: b) r = GConstruct f a (GConstruct f b r) | |
| GConstruct _1 (U1 :: Type -> Type) r = r | |
| GConstruct f (K1 _1 a :: Type -> Type) r = Eval (f a) -> r |
class GConstructable (_Table :: Type -> Exp Constraint) (_Columns :: Type -> Exp HTable) (f :: Type -> Exp Type) (context :: Context) (rep :: Type -> Type) Source #
Minimal complete definition
Instances
| (GConstructable _Table _Columns f context a, GConstructable _Table _Columns f context b) => GConstructable _Table _Columns f context (a :*: b) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record | |
| GConstructable _Table _Columns f context rep => GConstructable _Table _Columns f context (M1 C meta rep) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record | |
| GConstructable _Table _Columns f context rep => GConstructable _Table _Columns f context (M1 D meta rep) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record | |
| (Eval (_Table a), meta ~ 'MetaSel ('Just label) _su _ss _ds) => GConstructable _Table _Columns f context (M1 S meta (K1 i a :: Type -> Type)) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record Methods gconstruct :: ToColumns _Table _Columns f context -> GFields f (M1 S meta (K1 i a :: Type -> Type)) -> GColumns _Columns (M1 S meta (K1 i a :: Type -> Type)) context Source # gdeconstruct :: FromColumns _Table _Columns f context -> GColumns _Columns (M1 S meta (K1 i a :: Type -> Type)) context -> GFields f (M1 S meta (K1 i a :: Type -> Type)) Source # | |
gconstruct :: GConstructable _Table _Columns f context rep => ToColumns _Table _Columns f context -> GFields f rep -> GColumns _Columns rep context Source #
gdeconstruct :: GConstructable _Table _Columns f context rep => FromColumns _Table _Columns f context -> GColumns _Columns rep context -> GFields f rep Source #
class Representable (f :: Type -> Exp Type) (rep :: Type -> Type) Source #
Instances
| Representable f (U1 :: Type -> Type) Source # | |
| (Representable f a, Representable f b) => Representable f (a :*: b) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record | |
| Representable f (K1 i a :: Type -> Type) Source # | |
| Representable f rep => Representable f (M1 i meta rep) Source # | |
Defined in Rel8.Internal.Generic.Construction.Record | |
gtabulate :: Representable f rep => (GFields f rep -> a) -> GConstruct f rep a Source #
gindex :: Representable f rep => GConstruct f rep a -> GFields f rep -> a Source #