telegram-bot-simple-0.2.0: 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 #

gparseJSON :: forall a d f. (Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) => Value -> Parser a #

data Proxy3 d f a #

Constructors

Proxy3 

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

class GSomeJSON f where #

Minimal complete definition

gsomeToJSON, gsomeParseJSON

Methods

gsomeToJSON :: f p -> Value #

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

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

Defined in Telegram.Bot.API.Internal.Utils

Methods

gsomeToJSON :: (f :+: g) p -> Value #

gsomeParseJSON :: Value -> Parser ((f :+: g) p) #

(ToJSON a, FromJSON a) => GSomeJSON (C1 c (S1 s (K1 i a :: k -> *)) :: k -> *) # 
Instance details

Defined in Telegram.Bot.API.Internal.Utils

Methods

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

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

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

Defined in Telegram.Bot.API.Internal.Utils

Methods

gsomeToJSON :: D1 d f p -> Value #

gsomeParseJSON :: Value -> Parser (D1 d f p) #