Refactor Haddock options
authorDavid Waern <davve@dtek.chalmers.se>
Thu, 1 Nov 2007 13:17:57 +0000 (13:17 +0000)
committerDavid Waern <davve@dtek.chalmers.se>
Thu, 1 Nov 2007 13:17:57 +0000 (13:17 +0000)
commit03d8585e0940e28e024548654fe3505685aca94f
tree758b1b79153b3b182375b3644f17dc1341eb6237
parent1ab9e52bb5be57b4a51615e197cee1380f356371
Refactor Haddock options

This patch renames the DOC_OPTIONS pragma to OPTIONS_HADDOCK. It also
adds "-- # ..."-style Haddock option pragmas, for compatibility with
code that use them.

Another change is that both of these two pragmas behave like
OPTIONS_GHC, i.e. they are only allowed at the top of the module, they
are ignored everywhere else and they are stored in the dynflags. There is
no longer any Haddock options in HsSyn.

Please merge this to the 6.8.2 branch when 6.8.1 is out, if appropriate.
compiler/hsSyn/HsSyn.lhs
compiler/main/DynFlags.hs
compiler/main/HeaderInfo.hs
compiler/main/HscStats.lhs
compiler/parser/Lexer.x
compiler/parser/Parser.y.pp
compiler/typecheck/TcRnDriver.lhs