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 "*/"}

If the termination criterion was a single character, then I could use
noneOf or (satisfy . not), but that doesn't help here.

So... what am I missing?

Thanks in advance.

-- 
Scott Lawrence

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to