Module
Simple.JSON.Generics.UntaggedSumRep
- Package
- simple-json-generics
- Repository
- justinwoo/purescript-simple-json-generics
#untaggedSumRep Source
untaggedSumRep :: forall a rep. Generic a rep => GenericUntaggedSumRep rep => Foreign -> F a
#GenericUntaggedSumRep Source
class GenericUntaggedSumRep rep where
Generic Untagged Sum Representations Note that because the members are untagged, you should verify your members are not the same type
Members
genericUntaggedSumRep :: Foreign -> F rep
Instances
(GenericUntaggedSumRep a, GenericUntaggedSumRep b) => GenericUntaggedSumRep (Sum a b)
(GenericUntaggedSumRep a) => GenericUntaggedSumRep (Constructor name a)
(ReadForeign a) => GenericUntaggedSumRep (Argument a)