patch applied (ghc): Refactor the command-line argument parsing
Simon Peyton Jones
simonpj at microsoft.com
Mon Aug 16 06:06:29 EDT 2010
Mon Aug 16 00:44:53 PDT 2010 simonpj at microsoft.com
* Refactor the command-line argument parsing (again)
This change allows the client of CmdLineParser a bit more flexibility,
by giving him an arbitrary computation (not just a deprecation
message) for each flag.
There are several clients, so there are lots of boilerplate changes.
Immediate motivation: if RTS is not profiled, we want to make
Template Haskell illegal. That wasn't with the old setup.
M ./compiler/main/CmdLineParser.hs -60 +109
M ./compiler/main/DynFlags.hs -543 +440
M ./compiler/main/HscMain.lhs +5
M ./compiler/main/StaticFlagParser.hs -30 +43
M ./ghc/Main.hs -23 +4
View patch online:
More information about the Cvs-ghc