[Haskell] Parsec question: attempted 'notMatching' combinator
Daan Leijen
daanleijen at xs4all.nl
Wed Feb 18 14:45:15 EST 2004
On Wed, 18 Feb 2004 01:11:31 -0500, Andrew Pimlott <andrew at pimlott.net> wrote:
> After some pondering and fiddling, a version I like:
>
> notFollowedBy' :: Show a => GenParser tok st a -> GenParser tok st ()
> notFollowedBy' p = join $ do a <- try p; return (unexpected (show a))
> <|>
> return (return ())
Great work. Do you think that the library function should
be fixed with this version? (or can you check it in yourself?)
-- Daan.
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>
More information about the Haskell
mailing list