Module
Yoga.JSON.Generics.TaggedSumRep
- Package
- purescript-yoga-json
- Repository
- rowtype-yoga/purescript-yoga-json
#genericReadForeignTaggedSum Source
genericReadForeignTaggedSum :: forall a rep. Generic a rep => ReadGenericTaggedSumRep rep => Options -> Foreign -> F a
#ReadGenericTaggedSumRep Source
class ReadGenericTaggedSumRep rep where
Generic Tagged Sum Representations, tagged with a "type" field
Members
genericReadForeignTaggedSumRep :: Options -> Foreign -> F rep
Instances
(ReadGenericTaggedSumRep a, ReadGenericTaggedSumRep b) => ReadGenericTaggedSumRep (Sum a b)
(IsSymbol name) => ReadGenericTaggedSumRep (Constructor name NoArguments)
(ReadGenericTaggedSumRep a, IsSymbol name) => ReadGenericTaggedSumRep (Constructor name a)
(ReadForeign a) => ReadGenericTaggedSumRep (Argument a)
#genericWriteForeignTaggedSum Source
genericWriteForeignTaggedSum :: forall a rep. Generic a rep => WriteGenericTaggedSumRep rep => Options -> a -> Foreign
#WriteGenericTaggedSumRep Source
class WriteGenericTaggedSumRep rep where
Generic Tagged Sum Representations, tagged with a "type" field
Members
genericWriteForeignTaggedSumRep :: Options -> rep -> Foreign
Instances
(WriteGenericTaggedSumRep a, WriteGenericTaggedSumRep b) => WriteGenericTaggedSumRep (Sum a b)
(WriteGenericTaggedSumRep a, IsSymbol name) => WriteGenericTaggedSumRep (Constructor name a)
(WriteForeign a) => WriteGenericTaggedSumRep (Argument a)
WriteGenericTaggedSumRep NoArguments