telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
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 #

data Proxy3 d f a Source #

Constructors

Proxy3 

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

class GSomeJSON f where 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 #