Commits

Samuel Bronson committed f29f02b

Add a few headings

  • Participants
  • Parent commits b7ca75b

Comments (0)

Files changed (1)

File ByteStringParser.hs

           (Left _) -> Left (st, [msg])
           ok -> ok
 
+
+-- * Things like in @Parsec.Char@
+
 -- |character parser
 satisfy :: (Char -> Bool) -> Parser C.ByteString Char
 satisfy f =
 pChar :: Char -> Parser C.ByteString Char
 pChar c = satisfy (== c) <?> [c]
 
+
+-- * Things vaguely like those in @Parsec.Combinator@ (and @Parsec.Prim@)
+
 -- |detect 'end of file'
 pEOF :: Parser C.ByteString ()
 pEOF =
                          else o
                      x -> x
 
+
+-- * Running parsers
+
 -- |'parse' - run a parser
 parse :: Parser state a -> state -> Either (ParserError state) (a, state)
 parse p s =