[Haskell-cafe] Lazy HTML parsing with HXT, HaXML/polyparse, what else?

Henning Thielemann lemming at henning-thielemann.de
Mon May 14 10:29:33 EDT 2007


On Mon, 14 May 2007, Malcolm Wallace wrote:

> Perhaps I should just rewrite the 'exactly' combinator to have the
> behaviour you desire?  Its current definition is:
>
>     exactly 0 p = return []
>     exactly n p = do x <- p
>                      xs <- exactly (n-1) p
>                      return (x:xs)

Is there a difference between 'exactly' and 'replicateM' ?


More information about the Haskell-Cafe mailing list