Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
data DataConstructor Source
DataConstructor | |
|
toSumType :: forall t. (Generic t, Typeable t, GDataConstructor (Rep t)) => Proxy t -> SumType Source
class GDataConstructor f where Source
gToConstructors :: f a -> [DataConstructor] Source
(GDataConstructor a, GDataConstructor b) => GDataConstructor ((:+:) a b) Source | |
(Datatype a, GDataConstructor c) => GDataConstructor (D1 a c) Source | |
(Constructor a, GRecordEntry b) => GDataConstructor (C1 a b) Source |
class GRecordEntry f where Source
gToRecordEntries :: f a -> [RecordEntry] Source
GRecordEntry U1 Source | |
(GRecordEntry a, GRecordEntry b) => GRecordEntry ((:*:) a b) Source | |
(Selector a, Typeable * t) => GRecordEntry (S1 a (K1 R t)) Source |
getUsedTypes :: SumType -> [TypeInfo] Source
constructorToType :: DataConstructor -> [TypeInfo] -> [TypeInfo] Source