On Sun, Sep 11, 2011 at 1:38 PM, Scott Lawrence <[email protected]> wrote:
> Hey all,
>
> Trying to match C-style comments, I have:
>
> between (string "/*") (string "*/") $ many anyChar
>
> Which doesn't work, because it is equivalent (ignoring returned values) to
>
> do {string "/*"; many anyChar; string "*/"}
>
>
Use "manyTill".
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
