Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- traceBotDefault :: (Show model, Show action) => BotApp model action -> BotApp model action
- traceTelegramUpdatesWith :: (Update -> String) -> BotApp model action -> BotApp model action
- traceTelegramUpdatesJSON :: BotApp model action -> BotApp model action
- traceTelegramUpdatesShow :: BotApp model action -> BotApp model action
- data TracedAction action
- = TracedIncomingAction action
- | TracedIssuedAction action
- ppTracedAction :: Show action => TracedAction action -> String
- traceBotActionsWith :: (TracedAction action -> String) -> BotApp model action -> BotApp model action
- traceBotActionsShow :: Show action => BotApp model action -> BotApp model action
- traceBotModelWith :: (model -> String) -> BotApp model action -> BotApp model action
- traceBotModelShow :: Show model => BotApp model action -> BotApp model action
- traceBotModelJSON :: ToJSON model => BotApp model action -> BotApp model action
- ppAsJSON :: ToJSON a => a -> String
Bot debug tracing
traceBotDefault :: (Show model, Show action) => BotApp model action -> BotApp model action Source #
This a default bot tracing modifier that relies on
Trace Update
s
traceTelegramUpdatesWith Source #
Trace (debug print) every Update
before parsing it.
traceTelegramUpdatesJSON :: BotApp model action -> BotApp model action Source #
Trace (debug print) every update as pretty JSON value.
traceTelegramUpdatesShow :: BotApp model action -> BotApp model action Source #
Trace (debug print) every update using Show
instance.
Trace bot actions
data TracedAction action Source #
A type of an action to trace.
TracedIncomingAction action | An action that's about to be handled. |
TracedIssuedAction action | An action that's just been issued by some handler. |
Instances
Eq action => Eq (TracedAction action) Source # | |
Defined in Telegram.Bot.Simple.Debug (==) :: TracedAction action -> TracedAction action -> Bool # (/=) :: TracedAction action -> TracedAction action -> Bool # | |
Show action => Show (TracedAction action) Source # | |
Defined in Telegram.Bot.Simple.Debug showsPrec :: Int -> TracedAction action -> ShowS # show :: TracedAction action -> String # showList :: [TracedAction action] -> ShowS # |
ppTracedAction :: Show action => TracedAction action -> String Source #
Pretty print TraceActionType
.
:: (TracedAction action -> String) | How to display an action. |
-> BotApp model action | |
-> BotApp model action |
Trace (debug print) every incoming and issued action.
traceBotActionsShow :: Show action => BotApp model action -> BotApp model action Source #
Trace (debug print) bot actions using Show
instance.
Trace bot state model
Trace (debug print) bot model.
traceBotModelShow :: Show model => BotApp model action -> BotApp model action Source #
Trace (debug print) bot model using Show
instance.
traceBotModelJSON :: ToJSON model => BotApp model action -> BotApp model action Source #
Trace (debug print) bot model using Show
instance.