patch applied (ghc): Refactor the command-line argument parsing (again)

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:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20100816074453-1287e-3e57612e1045f44327c394110c7d2279032761db.gz



More information about the Cvs-ghc mailing list