telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Internal.Utils

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 #

genericSomeToJSON :: (Generic a, GSomeJSON (Rep a)) => a -> Value Source #

genericSomeParseJSON :: (Generic a, GSomeJSON (Rep a)) => Value -> Parser a Source #

data Proxy3 d f a Source #

Constructors

Proxy3 

jsonOptions :: String -> Options Source #

stripCommonPrefix :: Eq a => [a] -> [a] -> [a] Source #

class GSomeJSON f where Source #

Methods

gsomeToJSON :: f p -> Value Source #

gsomeParseJSON :: Value -> Parser (f p) Source #

Instances

Instances details
(GSomeJSON f, GSomeJSON g) => GSomeJSON (f :+: g :: k -> Type) Source # 
Instance details

Defined in Telegram.Bot.API.Internal.Utils

Methods

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 # 
Instance details

Defined in Telegram.Bot.API.Internal.Utils

Methods

gsomeToJSON :: forall (p :: k0). C1 c (S1 s (K1 i a)) p -> Value Source #

gsomeParseJSON :: forall (p :: k0). Value -> Parser (C1 c (S1 s (K1 i a)) p) Source #

GSomeJSON f => GSomeJSON (D1 d f :: k -> Type) Source # 
Instance details

Defined in Telegram.Bot.API.Internal.Utils

Methods

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 #

Orphan instances

Semigroup a => Semigroup (Q a) Source # 
Instance details

Methods

(<>) :: Q a -> Q a -> Q a #

sconcat :: NonEmpty (Q a) -> Q a #

stimes :: Integral b => b -> Q a -> Q a #

Monoid a => Monoid (Q a) Source # 
Instance details

Methods

mempty :: Q a #

mappend :: Q a -> Q a -> Q a #

mconcat :: [Q a] -> Q a #