Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class FromJSONForall f where
- parseJSONForall :: Sing a -> Value -> Parser (f a)
- class FromJSONForeach f where
- parseJSONForeach :: Sing a -> Value -> Parser (f a)
- class FromJSONExists f where
- parseJSONExists :: Value -> Parser (Exists f)
- class ToJSONForall f where
- toJSONForall :: f a -> Value
- class ToJSONForeach f where
- toJSONForeach :: Sing a -> f a -> Value
- data ToJSONKeyFunctionForall f
- = ToJSONKeyTextForall !(forall a. f a -> Key) !(forall a. f a -> Encoding' Key)
- | ToJSONKeyValueForall !(forall a. f a -> Value) !(forall a. f a -> Encoding)
- data FromJSONKeyFunctionForeach f
- = FromJSONKeyTextParserForeach !(forall a. Sing a -> Key -> Parser (f a))
- | FromJSONKeyValueForeach !(forall a. Sing a -> Value -> Parser (f a))
- class ToJSONKeyForall f where
- class ToJSONKeyForeach f where
- class FromJSONKeyExists f where
- class FromJSONKeyForeach f where
- class ToJSONSing k where
- toJSONSing :: forall (a :: k). Sing a -> Value
- class FromJSONSing k where
- parseJSONMapForeachKey :: forall k (f :: k -> Type) (a :: k) v. (FromJSONKeyForeach f, OrdForeach f, Unreify k) => (Value -> Parser v) -> Sing a -> Value -> Parser (Map (f a) v)
- toJSONMapForeachKey :: (ToJSONKeyForeach f, ToJSONForeach v) => Sing a -> Map (f a) (v a) -> Value
Documentation
class FromJSONForall f where Source #
Instances
(FromJSON1 f, FromJSONForall g) => FromJSONForall (Compose f g :: k -> Type) Source # | |
Defined in Data.Exists.Aeson |
class FromJSONForeach f where Source #
Instances
FromJSON a => FromJSONForeach (Const a :: k -> Type) Source # | |
Defined in Data.Exists.Aeson | |
FromJSONForeach f => FromJSONForeach (ApplyForeach f :: k -> Type) Source # | |
Defined in Data.Exists.Aeson parseJSONForeach :: forall (a :: k0). Sing a -> Value -> Parser (ApplyForeach f a) Source # | |
(FromJSON1 f, FromJSONForeach g) => FromJSONForeach (Compose f g :: k -> Type) Source # | |
Defined in Data.Exists.Aeson |
class FromJSONExists f where Source #
class ToJSONForall f where Source #
toJSONForall :: f a -> Value Source #
Instances
(ToJSON1 f, ToJSONForall g) => ToJSONForall (Compose f g :: k -> Type) Source # | |
Defined in Data.Exists.Aeson toJSONForall :: forall (a :: k0). Compose f g a -> Value Source # |
class ToJSONForeach f where Source #
toJSONForeach :: Sing a -> f a -> Value Source #
Instances
ToJSON a => ToJSONForeach (Const a :: k -> Type) Source # | |
Defined in Data.Exists.Aeson | |
ToJSONForeach f => ToJSONForeach (ApplyForeach f :: k -> Type) Source # | |
Defined in Data.Exists.Aeson toJSONForeach :: forall (a :: k0). Sing a -> ApplyForeach f a -> Value Source # | |
(ToJSON1 f, ToJSONForeach g) => ToJSONForeach (Compose f g :: k -> Type) Source # | |
Defined in Data.Exists.Aeson |
data ToJSONKeyFunctionForall f Source #
ToJSONKeyTextForall !(forall a. f a -> Key) !(forall a. f a -> Encoding' Key) | |
ToJSONKeyValueForall !(forall a. f a -> Value) !(forall a. f a -> Encoding) |
data FromJSONKeyFunctionForeach f Source #
FromJSONKeyTextParserForeach !(forall a. Sing a -> Key -> Parser (f a)) | |
FromJSONKeyValueForeach !(forall a. Sing a -> Value -> Parser (f a)) |
class ToJSONKeyForall f where Source #
class ToJSONKeyForeach f where Source #
Instances
ToJSONKeyForeach f => ToJSONKeyForeach (ApplyForeach f :: k -> Type) Source # | |
Defined in Data.Exists.Aeson |
class FromJSONKeyExists f where Source #
class FromJSONKeyForeach f where Source #
Instances
FromJSONKeyForeach f => FromJSONKeyForeach (ApplyForeach f :: k -> Type) Source # | |
Defined in Data.Exists.Aeson |
class ToJSONSing k where Source #
toJSONSing :: forall (a :: k). Sing a -> Value Source #
class FromJSONSing k where Source #
parseJSONMapForeachKey :: forall k (f :: k -> Type) (a :: k) v. (FromJSONKeyForeach f, OrdForeach f, Unreify k) => (Value -> Parser v) -> Sing a -> Value -> Parser (Map (f a) v) Source #
Parse a Map
whose key type is higher-kinded. This only creates a valid Map
if the OrdForeach
instance agrees with the Ord
instance.
toJSONMapForeachKey :: (ToJSONKeyForeach f, ToJSONForeach v) => Sing a -> Map (f a) (v a) -> Value Source #