choice' haddock

This commit is contained in:
Simon Michael 2011-07-17 17:16:40 +00:00
parent 5d5fb30685
commit f2171c1e02

View File

@ -336,6 +336,8 @@ tracewith f e = trace (f e) e
-- parsing -- parsing
-- | Backtracking choice, use this when alternatives share a prefix.
-- Consumes no input if all choices fail.
choice' :: [GenParser tok st a] -> GenParser tok st a choice' :: [GenParser tok st a] -> GenParser tok st a
choice' = choice . map Text.ParserCombinators.Parsec.try choice' = choice . map Text.ParserCombinators.Parsec.try