[Haskell-cafe] Lazy HTML parsing with HXT, HaXML/polyparse,
what else?
Henning Thielemann
lemming at henning-thielemann.de
Mon May 14 10:41:23 EDT 2007
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."
:-)
More information about the Haskell-Cafe
mailing list