Safe Haskell | Safe-Inferred |
---|---|
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 | |
(ToJSON a, FromJSON a) => GSomeJSON (C1 c (S1 s (K1 i a :: k -> Type)) :: k -> Type) Source # | |
GSomeJSON f => GSomeJSON (D1 d f :: k -> Type) Source # | |
Defined in Telegram.Bot.API.Internal.Utils |
addMultipartFields :: [Input] -> MultipartData tag -> MultipartData tag Source #