irc-fun-messages-0.4: Types and functions for working with the IRC protocol.

Safe HaskellNone
LanguageHaskell2010

Network.Irc.Messages.Mask

Description

This module deals with wildcard based masks, used for selecting users and servers.

Synopsis

Documentation

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.

serializeMask :: Mask -> Text Source #

Converts a Mask value into its string representation in IRC messages.

matches :: String -> Mask -> Bool infix 2 Source #