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

Portabilitynon-portable (BangPatterns, MagicHash)
Stabilityexperimental
Maintainerekmett@gmail.com
Safe HaskellTrustworthy

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 

Construction

Lookup

member :: Word8 -> ByteSet -> BoolSource

Check the set for membership.