telega-0.2.3: Telegram Bot API binding

Safe HaskellNone
LanguageHaskell2010

Network.API.Telegram.Bot.Core

Documentation

type Telegram e a = ReaderT (e, (Session, Token)) (ExceptT SomeException IO) a Source #

telegram :: Session -> Token -> e -> Telegram e a -> IO (Either SomeException a) Source #

newtype Token Source #

Constructors

Token Text 
Instances
Eq Token Source # 
Instance details

Defined in Network.API.Telegram.Bot.Core

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

data Ok a Source #

Instances
Show a => Show (Ok a) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Core

Methods

showsPrec :: Int -> Ok a -> ShowS #

show :: Ok a -> String #

showList :: [Ok a] -> ShowS #

FromJSON a => FromJSON (Ok a) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Core

Methods

parseJSON :: Value -> Parser (Ok a)

parseJSONList :: Value -> Parser [Ok a]

result :: Ok a -> Maybe a Source #