RE: Placement of OPTION pragmas

OPTIONS pragmas are only looked for at the top of your source files, upto the first (non-literate,non-empty) line not containing OPTIONS.
Why doesn't "non-empty" include comment-only lines?
One concrete reason for this is that the code which looks for '{-# OPTIONS' isn't the full Haskell lexer, so it doesn't understand comments. We could make it understand comments, but that adds extra complication (nested comments, maximal munch for '--' comments, etc.). Cheers, Simon

On Fri, 19 Sep 2003 14:27:19 +0100
"Simon Marlow"
We could make it understand comments, but that adds extra complication (nested comments, maximal munch for '--' comments, etc.).
Hmm. Nested comments yes, I see how that'd be a problem. But surely it wouldn't be hard to ignore lines matching "^\s*--"? Juanma
participants (2)
-
Juanma Barranquero
-
Simon Marlow