hweblib-0.6.1: Haskell Web Library

Safe HaskellNone
LanguageHaskell2010

Network.Parser.RfcCommon

Description

This module provides common parsers used in rfc specifications.

Synopsis

Documentation

hex :: Parser [Word8] Source

Common Parsers

Parse at least one hex digit.

lws :: Parser Word8 Source

Parse lws and return space

lwss :: Parser Word8 Source

consecutive matches of lws rule, where they MUST be compressed to a single 0x20 byte

ctext :: Parser Word8 Source

Parse a character but not a control or parenthesis

qdtext :: Parser Word8 Source

Parse a character but not a control character or double quote

quotedPair :: Parser [Word8] Source

Parse quoted pair

quotedString :: Parser [Word8] Source

Parse quoted string

text :: Parser Word8 Source

Parse a character but not a control character.

appcon :: [a] -> [[a]] -> [a] Source

Utilities

word8l :: Word8 -> Parser ByteString [Word8] Source

return a word inside a list

toRepr :: [Word8] -> [Char] Source

Convert a ByteString Word to ByteString Char