Safe Haskell | Safe-Infered |
---|
- mapParsecT :: (Monad m, Monad n) => (m (Consumed (m (Reply s u a))) -> n (Consumed (n (Reply s u b)))) -> ParsecT s u m a -> ParsecT s u n b
- nat :: Monad m => ParsecT String () m Integer
- botPrefix :: BotMonad m => ParsecT String () m ()
- parsecPart :: BotMonad m => ParsecT String () m a -> m a
- reportError :: BotMonad m => String -> ParseError -> m ()
- showErrorMessages :: String -> String -> String -> String -> String -> [Message] -> [String]
Documentation
mapParsecT :: (Monad m, Monad n) => (m (Consumed (m (Reply s u a))) -> n (Consumed (n (Reply s u b)))) -> ParsecT s u m a -> ParsecT s u n bSource
parsecPart :: BotMonad m => ParsecT String () m a -> m aSource
create a bot part by using Parsec to parse the command
The argument to parsecPart
is a parser function.
The argument to that parsec function is the target
that the response should be sent to.
The parser will receive the msg
from the PrivMsg
.
see dicePart
for an example usage.
reportError :: BotMonad m => String -> ParseError -> m ()Source