| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
PureScript.Bridge.SumType
Documentation
data DataConstructor Source
Constructors
| DataConstructor | |
Fields
| |
Instances
toSumType :: forall t. (Generic t, Typeable t, GDataConstructor (Rep t)) => Proxy t -> SumType Source
class GDataConstructor f where Source
Methods
gToConstructors :: f a -> [DataConstructor] Source
Instances
| (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
Methods
gToRecordEntries :: f a -> [RecordEntry] Source
Instances
| 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
flattenTypeInfo :: TypeInfo -> [TypeInfo] Source