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

Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.IRC.Fun.Messages.Mask

Description

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

Synopsis

Documentation

parseMask :: String -> 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 -> String Source

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

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