[Haskell-cafe] followedBy parser in Parsec

Paul Keir pkeir at dcs.gla.ac.uk
Thu Nov 27 16:36:09 EST 2008


'lookAhead' is exactly what I needed:

try $ array_element >>= \ae -> lookAhead (reservedOp "(") >> return ae

Many thanks,
Paul

Maybe you're looking for 'lookAhead'?

> 
> [...]

//Stephan

-- 

Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.

 - Dieter Nuhr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081127/b0925eb1/attachment.htm


More information about the Haskell-Cafe mailing list