| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
MatrixBot.Bot
Synopsis
- startTheBot :: (BotM r m, HasBotJobsReader r, HasBotJobsWriter r) => Maybe FilePath -> EventsTimeout -> BotConfig -> m ()
- withReqAndAuth :: (MonadIO m, MonadUnliftIO m, MonadThrow m, MonadLogger m, MonadReader r m, HasCredentials r) => EventsTimeout -> (MatrixApiClient -> AuthenticatedRequest (AuthProtect "access-token") -> m a) -> m a
Documentation
startTheBot :: (BotM r m, HasBotJobsReader r, HasBotJobsWriter r) => Maybe FilePath -> EventsTimeout -> BotConfig -> m () Source #
withReqAndAuth :: (MonadIO m, MonadUnliftIO m, MonadThrow m, MonadLogger m, MonadReader r m, HasCredentials r) => EventsTimeout -> (MatrixApiClient -> AuthenticatedRequest (AuthProtect "access-token") -> m a) -> m a Source #
Run a monad supplied via arguments with Matrix API HTTP request maker and authentication