Module
Yoga.JSON.Generics.EnumSumRep
- Package
- purescript-yoga-json
- Repository
- rowtype-yoga/purescript-yoga-json
#genericReadForeignEnum Source
genericReadForeignEnum :: forall a rep. Generic a rep => GenericEnumSumRep rep => Options -> Foreign -> F a
#genericWriteForeignEnum Source
genericWriteForeignEnum :: forall a rep. Generic a rep => GenericEnumSumRep rep => Options -> a -> Foreign
#GenericEnumSumRep Source
class GenericEnumSumRep rep where
Generic Enum Sum Representations, with constructor names as strings
Members
genericEnumReadForeign :: Options -> Foreign -> F rep
genericEnumWriteForeign :: Options -> rep -> Foreign
Instances
(GenericEnumSumRep a, GenericEnumSumRep b) => GenericEnumSumRep (Sum a b)
(IsSymbol name) => GenericEnumSumRep (Constructor name NoArguments)