Module
Yoga.JSON.Generics.UntaggedSumRep
- Package
- purescript-yoga-json
- Repository
- rowtype-yoga/purescript-yoga-json
#genericReadForeignUntaggedSum Source
genericReadForeignUntaggedSum :: forall a rep. Generic a rep => ReadGenericUntaggedSumRep rep => Foreign -> F a
#ReadGenericUntaggedSumRep Source
class ReadGenericUntaggedSumRep rep where
Generic Untagged Sum Representations Note that because the members are untagged, you should verify your members are not the same type
Members
genericReadForeignUntaggedSumRep :: Foreign -> F rep
Instances
(ReadGenericUntaggedSumRep a, ReadGenericUntaggedSumRep b) => ReadGenericUntaggedSumRep (Sum a b)
(ReadGenericUntaggedSumRep a) => ReadGenericUntaggedSumRep (Constructor name a)
(ReadForeign a) => ReadGenericUntaggedSumRep (Argument a)
#genericWriteForeignUntaggedSum Source
genericWriteForeignUntaggedSum :: forall a rep. Generic a rep => WriteGenericUntaggedSumRep rep => a -> Foreign
#WriteGenericUntaggedSumRep Source
class WriteGenericUntaggedSumRep rep where
Generic Untagged Sum Representations Note that because the members are untagged, you should verify your members are not the same type
Members
genericWriteForeignUntaggedSumRep :: rep -> Foreign
Instances
(WriteGenericUntaggedSumRep a, WriteGenericUntaggedSumRep b) => WriteGenericUntaggedSumRep (Sum a b)
(WriteGenericUntaggedSumRep a) => WriteGenericUntaggedSumRep (Constructor name a)
(WriteForeign a) => WriteGenericUntaggedSumRep (Argument a)