On Sun, Sep 11, 2011 at 1:38 PM, Scott Lawrence <byt...@gmail.com> 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
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to