Module
Data.Argonaut.Aeson.Decode.Generic
- Package
- purescript-argonaut-aeson-generic
- Repository
- coot/purescript-argonaut-aeson-generic
#DecodeAeson Source
class DecodeAeson r where
Members
decodeAeson :: Options -> Json -> Either JsonDecodeError r
Instances
DecodeAeson NoConstructors
(DecodeRepArgs a, IsSymbol name, AreAllConstructorsNullary (Constructor name a), IsSingleConstructor (Constructor name a), DecodeAeson' (Constructor name a)) => DecodeAeson (Constructor name a)
(DecodeAeson' (Sum a b), AreAllConstructorsNullary (Sum a b), IsSingleConstructor (Sum a b)) => DecodeAeson (Sum a b)
#DecodeAeson' Source
class DecodeAeson' r where
Members
decodeAeson' :: Mode -> Options -> Json -> Either JsonDecodeError r
Instances
DecodeAeson' NoConstructors
(DecodeAeson' a, DecodeAeson' b) => DecodeAeson' (Sum a b)
(IsSymbol name) => DecodeAeson' (Constructor name NoArguments)
(IsSymbol name, DecodeRepArgs a, DecodeRepArgs b) => DecodeAeson' (Constructor name (Product a b))
(IsSymbol name, DecodeRepArgs (Argument a)) => DecodeAeson' (Constructor name (Argument a))
#genericDecodeAeson Source
genericDecodeAeson :: forall a r. Generic a r => DecodeAeson r => Options -> Json -> Either JsonDecodeError a
Decode Json
Aeson representation of a value which has a Generic
type.