Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
BotPartT | |
|
Instances
class (Functor m, MonadPlus m, MonadIO m) => BotMonad m where Source #
askBotEnv :: m BotEnv Source #
askMessage :: m Message Source #
askOutChan :: m (Chan Message) Source #
localMessage :: (Message -> Message) -> m a -> m a Source #
sendMessage :: Message -> m () Source #
logM :: LogLevel -> ByteString -> m () Source #
whoami :: m ByteString Source #
Instances
(Functor m, MonadIO m, MonadPlus m) => BotMonad (BotPartT m) Source # | |
Defined in Network.IRC.Bot.BotMonad askBotEnv :: BotPartT m BotEnv Source # askMessage :: BotPartT m Message Source # askOutChan :: BotPartT m (Chan Message) Source # localMessage :: (Message -> Message) -> BotPartT m a -> BotPartT m a Source # sendMessage :: Message -> BotPartT m () Source # logM :: LogLevel -> ByteString -> BotPartT m () Source # whoami :: BotPartT m ByteString Source # | |
(BotMonad m, Monad m) => BotMonad (ParsecT s u m) Source # | |
Defined in Network.IRC.Bot.Parsec askBotEnv :: ParsecT s u m BotEnv Source # askMessage :: ParsecT s u m Message Source # askOutChan :: ParsecT s u m (Chan Message) Source # localMessage :: (Message -> Message) -> ParsecT s u m a -> ParsecT s u m a Source # sendMessage :: Message -> ParsecT s u m () Source # logM :: LogLevel -> ByteString -> ParsecT s u m () Source # whoami :: ParsecT s u m ByteString Source # |
runBotPartT :: BotPartT m a -> BotEnv -> m a Source #
mapBotPartT :: (m a -> n b) -> BotPartT m a -> BotPartT n b Source #