json-autotype-0.2.4.0: Automatic type declaration for JSON input data

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.AutoType.Alternative

Documentation

data Alt a b Source

Constructors

FirstAlt a 
SecondAlt b 

Instances

(Eq a, Eq b) => Eq (Alt a b) 
(Ord a, Ord b) => Ord (Alt a b) 
(Show a, Show b) => Show (Alt a b) 
(ToJSON a, ToJSON b) => ToJSON (Alt a b) 
(FromJSON a, FromJSON b) => FromJSON (Alt a b) 

toEither :: Alt a b -> Either a b Source

fromEither :: Either a b -> Alt a b Source