| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
JsonToType.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 a :|: b infixr 5 Source #
Data type (a :|: b) that behaves all like Either,
except that has no tag in JSON representation as used by FromJSON and ToJSON.
Instances
fromEither :: Either a b -> a :|: b Source #
Convert from Either datatype.