Placement of OPTION pragmas

Simon Marlow simonmar at microsoft.com
Fri Sep 19 15:27:19 EDT 2003


 
> > 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



More information about the Glasgow-haskell-users mailing list