On Mon, 14 May 2007, Malcolm Wallace wrote:

> Essentially, you need to return a constructor as soon as you know that
> the initial portion of parsed data is correct.  Often the only sensible
> way to do that is to use the 'apply' combinator (as shown in the
> examples above), returning a constructor _function_ which is lazily
> applied to the remainder of the parsing task.

Great, 'apply' is the solution! I admit that I couldn't derive its power
from its documentation which simply states
 "Apply a parsed function to a parsed value."

:-)
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to