Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Utilities for decoding JSON into one of the possible types and handling the resulting sum type.
Synopsis
- data AlternativeJSON a b
- alternative :: (a -> r) -> (b -> r) -> AlternativeJSON a b -> r
Documentation
data AlternativeJSON a b Source #
One of the two values that has been parsed from JSON
Instances
alternative :: (a -> r) -> (b -> r) -> AlternativeJSON a b -> r Source #
Handle either of the two types that have been parsed from JSON