-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Combinator parsing with Data.ByteString.Lazy -- -- Combinator parsing with Data.ByteString.Lazy @package bytestringparser @version 0.2.2 -- | Fast 8-bit character set membership. module Text.ParserCombinators.ByteStringParser.FastSet data FastSet -- | Create a character set. set :: ByteString -> FastSet -- | Check the table for membership. member :: Char -> FastSet -> Bool -- | Check the table for membership. member8 :: Word8 -> FastSet -> Bool fromSet :: FastSet -> ByteString instance Eq FastSet instance Ord FastSet instance Show FastSet -- | Simple, efficient parser combinators for lazy ByteString -- strings, loosely based on Text.ParserCombinators.Parsec. module Text.ParserCombinators.ByteStringParser type ParseError = String data Parser a -- | Run a parser. parse :: Parser a -> ByteString -> (ByteString, Either ParseError a) parseAt :: Parser a -> ByteString -> Int64 -> (ByteString, Either ParseError (a, Int64)) parseTest :: (Show a) => Parser a -> ByteString -> IO () -- | Name the parser. () :: Parser a -> String -> Parser a try :: Parser a -> Parser a manyTill :: Parser a -> Parser b -> Parser [a] -- | Detect 'end of file'. eof :: Parser () -- | skipMany - skip zero or many instances of the parser skipMany :: Parser a -> Parser () -- | skipMany1 - skip one or many instances of the parser skipMany1 :: Parser a -> Parser () -- | Apply the given parser repeatedly, returning every parse result. count :: Int -> Parser a -> Parser [a] lookAhead :: Parser a -> Parser a peek :: Parser a -> Parser (Maybe a) sepBy :: Parser a -> Parser s -> Parser [a] sepBy1 :: Parser a -> Parser s -> Parser [a] -- | Character parser. satisfy :: (Char -> Bool) -> Parser Char letter :: Parser Char digit :: Parser Char anyChar :: Parser Char space :: Parser Char -- | Satisfy a specific character. char :: Char -> Parser Char -- | Satisfy a specific character. notChar :: Char -> Parser Char -- | Satisfy a literal string. string :: ByteString -> Parser ByteString -- | Satisfy a literal string, ignoring case. stringCI :: ByteString -> Parser ByteString eitherP :: Parser a -> Parser b -> Parser (Either a b) -- | Get remaining input. getInput :: Parser ByteString -- | Get number of bytes consumed so far. getConsumed :: Parser Int64 -- | Consume characters while the predicate is true. takeWhile :: (Char -> Bool) -> Parser ByteString takeWhile1 :: (Char -> Bool) -> Parser ByteString takeTill :: (Char -> Bool) -> Parser ByteString takeAll :: Parser ByteString -- | Skip over characters while the predicate is true. skipWhile :: (Char -> Bool) -> Parser () -- | Skip over white space. skipSpace :: Parser () -- | Test that a parser returned a non-null ByteString. notEmpty :: Parser ByteString -> Parser ByteString -- | Parse some input with the given parser and return that input without -- copying it. match :: Parser a -> Parser ByteString inClass :: String -> Char -> Bool notInClass :: String -> Char -> Bool instance Alternative Parser instance Applicative Parser instance MonadPlus Parser instance MonadFix Parser instance Monad Parser instance Functor Parser