hweblib-0.6.3: Haskell Web Library

Safe HaskellNone

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 Word8Source

Parse lws and return space

lwss :: Parser Word8Source

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

ctext :: Parser Word8Source

Parse a character but not a control or parenthesis

qdtext :: Parser Word8Source

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 Word8Source

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