| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Aeson.AutoType.Alternative
Description
This module defines data type (a :|: b) that behaves all like Either,
except that has no tag in JSON representation as used by FromJSON and ToJSON.
Documentation
Data type (a :|: b) that behaves all like Either,
except that has no tag in JSON representation as used by FromJSON and ToJSON.
fromEither :: Either a b -> a :|: b Source
Convert from Either datatype.