Module
Simple.JSON.Generics.EnumSumRep
- Package
- purescript-simple-json-generics
- Repository
- justinwoo/purescript-simple-json-generics
#enumSumRep Source
enumSumRep :: forall a rep. Generic a rep => GenericEnumSumRep rep => Foreign -> F a
#GenericEnumSumRep Source
class GenericEnumSumRep rep where
Generic Enum Sum Representations, with constructor names as strings
Members
genericEnumReadForeign :: Foreign -> F rep
Instances
(GenericEnumSumRep a, GenericEnumSumRep b) => GenericEnumSumRep (Sum a b)
(IsSymbol name) => GenericEnumSumRep (Constructor name NoArguments)