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