Stability | beta |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Enumeratees and other tools.
- parseIter :: (Exception ex, Monad m) => Parser b -> (String -> ex) -> ByteString -> Iteratee a m b
- parseFull :: forall a. Parser a -> ByteString -> Either String a
- iterFinally :: Monad m => Iteratee a m b -> Iteratee a m c -> Iteratee a m b
- iterTry :: MonadIO m => IO b -> Iteratee a m b
- showMethod :: HttpMethod -> ByteString
- showVersion :: HttpVersion -> ByteString
- asciiToUpper :: Char -> Char
Parser tools
parseIter :: (Exception ex, Monad m) => Parser b -> (String -> ex) -> ByteString -> Iteratee a m bSource
Fully parse a string with the given parser. Throw an iteratee error with the given error constructor, if it fails.
parseFull :: forall a. Parser a -> ByteString -> Either String aSource
Fully parse a string with the given parser.
Iteratee tools
Printing tools
showMethod :: HttpMethod -> ByteStringSource
Turn a method into its corresponding HTTP string.
showVersion :: HttpVersion -> ByteStringSource
Turn an HTTP version into its corresponding HTTP string.
Character tools
asciiToUpper :: Char -> CharSource
Fast ASCII version of toUpper
.