-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | serialization and parsing of IRC messages -- -- A simple library for handling IRC protocol messages using bytestrings. @package irc-bytestring @version 0.1 module Network.IRC.ByteString.Parser type ServerName = ByteString data IRCMsg IRCMsg :: Maybe (Either UserInfo ServerName) -> ByteString -> [ByteString] -> ByteString -> IRCMsg msgPrefix :: IRCMsg -> Maybe (Either UserInfo ServerName) msgCmd :: IRCMsg -> ByteString msgParams :: IRCMsg -> [ByteString] msgTrail :: IRCMsg -> ByteString data UserInfo UserInfo :: ByteString -> Maybe ByteString -> Maybe ByteString -> UserInfo userNick :: UserInfo -> ByteString userName :: UserInfo -> Maybe ByteString userHost :: UserInfo -> Maybe ByteString toIRCMsg :: ByteString -> Result IRCMsg fromIRCMsg :: IRCMsg -> ByteString ircMsg :: ByteString -> [ByteString] -> ByteString -> IRCMsg ircLine :: Parser IRCMsg instance Eq UserInfo instance Show UserInfo instance Read UserInfo instance Show IRCMsg instance Eq IRCMsg instance Read IRCMsg