trifecta-0.51.0.1: A modern parser combinator library with convenient diagnostics

Portabilityunknown
Stabilityexperimental
Maintainerekmett@gmail.com
Safe HaskellSafe-Infered

Text.Trifecta.Util.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.