Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
gtoJSON :: forall a d f. (Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) => a -> Value Source #
gparseJSON :: forall a d f. (Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) => Value -> Parser a Source #
jsonOptions :: String -> Options Source #
camelWords :: String -> [String] Source #
stripCommonPrefix :: Eq a => [a] -> [a] -> [a] Source #
wordsToCamel :: [String] -> String Source #
wordsToSnake :: [String] -> String Source #
capitalise :: String -> String Source #
class GSomeJSON f where Source #
gsomeToJSON :: f p -> Value Source #
gsomeParseJSON :: Value -> Parser (f p) Source #
Instances
(GSomeJSON f, GSomeJSON g) => GSomeJSON (f :+: g :: k -> Type) Source # | |
Defined in Telegram.Bot.API.Internal.Utils gsomeToJSON :: forall (p :: k0). (f :+: g) p -> Value Source # gsomeParseJSON :: forall (p :: k0). Value -> Parser ((f :+: g) p) Source # | |
(ToJSON a, FromJSON a) => GSomeJSON (C1 c (S1 s (K1 i a :: k -> Type)) :: k -> Type) Source # | |
Defined in Telegram.Bot.API.Internal.Utils | |
GSomeJSON f => GSomeJSON (D1 d f :: k -> Type) Source # | |
Defined in Telegram.Bot.API.Internal.Utils gsomeToJSON :: forall (p :: k0). D1 d f p -> Value Source # gsomeParseJSON :: forall (p :: k0). Value -> Parser (D1 d f p) Source # |
addJsonFields :: Value -> [Pair] -> Value Source #
addMultipartFields :: [Input] -> MultipartData tag -> MultipartData tag Source #