Copyright | (c) Naoto Shimazaki 2017 |
---|---|
License | MIT (see the file LICENSE) |
Maintainer | https://github.com/nshimaza |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Space efficient set of Word8
and some pre-canned sets useful for parsing HTTP related ByteString
.
This file contains additional useful character sets but they aren't evaluated at compile time.
Synopsis
- data BitSetWord8 = BitSetWord8 !Word64 !Word64 !Word64 !Word64
- rfc5234Digit' :: [Char]
- rfc2616UpAlpha' :: [Char]
- rfc2616LoAlpha' :: [Char]
- rfc5234Alpha' :: [Char]
- rfc5234HexDig' :: [Char]
- rfc5234VChar' :: [Char]
- rfc5324Wsp' :: [Char]
- rfc3986SubDelims' :: [Char]
- rfc3986GenDelims' :: [Char]
- rfc3986Reserved' :: [Char]
- rfc3986Unreserved' :: [Char]
- rfc3986PctEncodedChar' :: [Char]
- rfc3986PChar' :: [Char]
- rfc3986UriReference' :: [Char]
- rfc7230TChar' :: [Char]
- rfc7230ObsText' :: [Char]
- rfc7230QDText' :: [Char]
- rfc7230QuotedPair' :: [Char]
- member :: BitSetWord8 -> Word8 -> Bool
- toWord8Set :: [Char] -> Set Word8
- toBoolList :: Set Word8 -> [Bool]
- toWord64 :: [Bool] -> Word64
- toWord64List :: [Bool] -> [Word64]
- fromList :: [Char] -> BitSetWord8
Documentation
data BitSetWord8 Source #
Bitwise set of Word8. Space efficient backend and O(1) membership test.
Instances
Eq BitSetWord8 Source # | |
Defined in Data.BitSetWord8.Internal (==) :: BitSetWord8 -> BitSetWord8 -> Bool # (/=) :: BitSetWord8 -> BitSetWord8 -> Bool # | |
Show BitSetWord8 Source # | |
Defined in Data.BitSetWord8.Internal showsPrec :: Int -> BitSetWord8 -> ShowS # show :: BitSetWord8 -> String # showList :: [BitSetWord8] -> ShowS # | |
Lift BitSetWord8 Source # | |
Defined in Data.BitSetWord8.Internal lift :: BitSetWord8 -> Q Exp # |
rfc5234Digit' :: [Char] Source #
DIGIT of RFC5324 in Char
list.
rfc2616UpAlpha' :: [Char] Source #
UPALPHA of RFC2616 in Char
list.
Note that RFC2616 has been obsoleted by RFC7230 and RFC7230 doesn't define UPALPHA.
rfc2616LoAlpha' :: [Char] Source #
LOALPHA of RFC2616 in Char
list.
Note that RFC2616 has been obsoleted by RFC7230 and RFC7230 doesn't define LOALPHA.
rfc5234Alpha' :: [Char] Source #
ALPHA of RFC5324 in Char
list.
rfc5234HexDig' :: [Char] Source #
HEXDIG of RFC5324 in Char
list.
rfc5234VChar' :: [Char] Source #
VCHAR of RFC5324 in Char
list.
rfc5324Wsp' :: [Char] Source #
WSP (aka white space) of RFC5324 in Char
list.
rfc3986SubDelims' :: [Char] Source #
sub-delim of RFC3986 in Char
list.
rfc3986GenDelims' :: [Char] Source #
gen-delim of RFC3986 in Char
list.
rfc3986Reserved' :: [Char] Source #
reserved of RFC3986 in Char
list.
rfc3986Unreserved' :: [Char] Source #
unreserved of RFC3986 in Char
list.
rfc3986PctEncodedChar' :: [Char] Source #
pct-encoded of RFC3986 in Char
list.
rfc3986PChar' :: [Char] Source #
pchar of RFC3986 in Char
list.
rfc3986UriReference' :: [Char] Source #
URI-Reference of RFC3986 in Char
list.
rfc7230TChar' :: [Char] Source #
tchar of RFC7230 in Char
list.
rfc7230ObsText' :: [Char] Source #
obs-text of RFC7230 in Char
list.
rfc7230QDText' :: [Char] Source #
qdtext of RFC7230 in Char
list.
rfc7230QuotedPair' :: [Char] Source #
quoted-pair of RFC7230 in Char
list.
member :: BitSetWord8 -> Word8 -> Bool Source #
O(1). Return True
if given Word8
is a member of given BitSetWord8
.
toBoolList :: Set Word8 -> [Bool] Source #
Convert Set
of Word8 to full filled list of boolean existence flag.