charset-0.3.7.1: Fast unicode character sets based on complemented PATRICIA tries

CopyrightEdward Kmett 2011
Bryan O'Sullivan 2008
LicenseBSD3
Maintainerekmett@gmail.com
Stabilityexperimental
Portabilitynon-portable (BangPatterns, MagicHash)
Safe HaskellTrustworthy
LanguageHaskell98

Data.CharSet.ByteSet

Contents

Description

Fast set membership tests for byte values, The set representation is unboxed for efficiency and uses a lookup table. This is a fairly minimal API. You probably want to use CharSet.

Synopsis

Data type

newtype ByteSet Source #

Constructors

ByteSet ByteString 
Instances
Eq ByteSet Source # 
Instance details

Defined in Data.CharSet.ByteSet

Methods

(==) :: ByteSet -> ByteSet -> Bool #

(/=) :: ByteSet -> ByteSet -> Bool #

Ord ByteSet Source # 
Instance details

Defined in Data.CharSet.ByteSet

Show ByteSet Source # 
Instance details

Defined in Data.CharSet.ByteSet

Construction

Lookup

member :: Word8 -> ByteSet -> Bool Source #

Check the set for membership.