Module
Simple.JSON.Generics.TaggedSumRep
- Package
- purescript-simple-json-generics
- Repository
- justinwoo/purescript-simple-json-generics
#taggedSumRep Source
taggedSumRep :: forall a rep. Generic a rep => GenericTaggedSumRep rep => Foreign -> F a
#GenericTaggedSumRep Source
class GenericTaggedSumRep rep where
Generic Tagged Sum Representations, tagged with a "type" field
Members
genericTaggedSumRep :: Foreign -> F rep
Instances
(GenericTaggedSumRep a, GenericTaggedSumRep b) => GenericTaggedSumRep (Sum a b)
(GenericTaggedSumRep a, IsSymbol name) => GenericTaggedSumRep (Constructor name a)
(ReadForeign a) => GenericTaggedSumRep (Argument a)