serverless-haskell-0.10.4: Deploying Haskell code onto AWS Lambda using Serverless

Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Alternative

Description

Utilities for decoding JSON into one of the possible types and handling the resulting sum type.

Synopsis

Documentation

data AlternativeJSON a b Source #

One of the two values that has been parsed from JSON

Instances
(Eq a, Eq b) => Eq (AlternativeJSON a b) Source # 
Instance details

Defined in Data.Aeson.Alternative

(Ord a, Ord b) => Ord (AlternativeJSON a b) Source # 
Instance details

Defined in Data.Aeson.Alternative

(Show a, Show b) => Show (AlternativeJSON a b) Source # 
Instance details

Defined in Data.Aeson.Alternative

(FromJSON a, FromJSON b) => FromJSON (AlternativeJSON a b) Source # 
Instance details

Defined in Data.Aeson.Alternative

alternative :: (a -> r) -> (b -> r) -> AlternativeJSON a b -> r Source #

Handle either of the two types that have been parsed from JSON