irc-fun-messages-0.4: Types and functions for working with the IRC protocol.
Network.Irc.Messages.Mask
Description
This module deals with wildcard based masks, used for selecting users and servers.
Synopsis
parseMask :: Text -> Maybe Mask Source #
Parse a mask string (e.g. "*!**"@) into a Mask value. Returns Nothing if the string isn't a valid mask.
"*!*
Mask
Nothing
serializeMask :: Mask -> Text Source #
Converts a Mask value into its string representation in IRC messages.
matches :: String -> Mask -> Bool infix 2 Source #