fastirc-0.1.1: Fast Internet Relay Chat (IRC) library

Stabilityexperimental
MaintainerErtugrul Soeylemez

Network.FastIRC.ServerSet

Contents

Description

Functions for dealing with sets of IRC servers. Note that servers are compared case-insensitively.

Synopsis

The server set type

data ServerSet Source

A set of servers. This data type uses Set internally, but the strings are handled case-insensitively.

Manipulation

delServer :: ByteString -> ServerSet -> ServerSetSource

Remove a server from a ServerSet.

emptyServers :: ServerSetSource

Empty set of servers.

isServer :: ByteString -> ServerSet -> BoolSource

Check whether specified server is in the set.

Conversion

serverList :: ServerSet -> [ByteString]Source

Convert to list.

serversFromList :: [ByteString] -> ServerSetSource

Build from list.