Copyright | (c) 2020 Emily Pillmore |
---|---|
License | BSD-3-Clause |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | CPP |
Safe Haskell | None |
Language | Haskell2010 |
This module contains the Aeson instances for the Can
datatype.
Orphan instances
FromJSON2 Can Source # | |
liftParseJSON2 :: (Value -> Parser a) -> (Value -> Parser [a]) -> (Value -> Parser b) -> (Value -> Parser [b]) -> Value -> Parser (Can a b) liftParseJSONList2 :: (Value -> Parser a) -> (Value -> Parser [a]) -> (Value -> Parser b) -> (Value -> Parser [b]) -> Value -> Parser [Can a b] | |
ToJSON2 Can Source # | |
liftToJSON2 :: (a -> Value) -> ([a] -> Value) -> (b -> Value) -> ([b] -> Value) -> Can a b -> Value liftToJSONList2 :: (a -> Value) -> ([a] -> Value) -> (b -> Value) -> ([b] -> Value) -> [Can a b] -> Value liftToEncoding2 :: (a -> Encoding) -> ([a] -> Encoding) -> (b -> Encoding) -> ([b] -> Encoding) -> Can a b -> Encoding liftToEncodingList2 :: (a -> Encoding) -> ([a] -> Encoding) -> (b -> Encoding) -> ([b] -> Encoding) -> [Can a b] -> Encoding | |
FromJSON a => FromJSON1 (Can a) Source # | |
liftParseJSON :: (Value -> Parser a0) -> (Value -> Parser [a0]) -> Value -> Parser (Can a a0) liftParseJSONList :: (Value -> Parser a0) -> (Value -> Parser [a0]) -> Value -> Parser [Can a a0] | |
ToJSON a => ToJSON1 (Can a) Source # | |
liftToJSON :: (a0 -> Value) -> ([a0] -> Value) -> Can a a0 -> Value liftToJSONList :: (a0 -> Value) -> ([a0] -> Value) -> [Can a a0] -> Value liftToEncoding :: (a0 -> Encoding) -> ([a0] -> Encoding) -> Can a a0 -> Encoding liftToEncodingList :: (a0 -> Encoding) -> ([a0] -> Encoding) -> [Can a a0] -> Encoding | |
(FromJSON a, FromJSON b) => FromJSON (Can a b) Source # | |
parseJSON :: Value -> Parser (Can a b) parseJSONList :: Value -> Parser [Can a b] | |
(ToJSON a, ToJSON b) => ToJSON (Can a b) Source # | |
toJSON :: Can a b -> Value toEncoding :: Can a b -> Encoding toJSONList :: [Can a b] -> Value toEncodingList :: [Can a b] -> Encoding |