[commit: Cabal] master: Removed one level of indirection in the command-line options parsing. (f7b4206)

Ian Lynagh igloo at earth.li
Fri Jun 24 01:43:55 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/f7b4206da01b390a18a2ea148611d1acf9642306

>---------------------------------------------------------------

commit f7b4206da01b390a18a2ea148611d1acf9642306
Author: bjorn <bjorn at bringert.net>
Date:   Mon Apr 9 15:46:54 2007 +0000

    Removed one level of indirection in the command-line options parsing.
    Before, getOpt would return a list of Flag, which had a one-to-one correspondence with functions TempFlags -> TempFlags. This made it uneccessarily difficult and error-prone to add new flags. I removed the Flag type and replaced the values with TempFlags -> TempFlags functions. This should have the side effect of making the tar path flag work, since it was not interpreted before.

 .../src/Network/Hackage/CabalInstall/Setup.hs      |   99 ++++++++------------
 .../src/Network/Hackage/CabalInstall/Types.hs      |   16 +---
 2 files changed, 42 insertions(+), 73 deletions(-)


Diff suppressed because of size. To see it, use:

    git show f7b4206da01b390a18a2ea148611d1acf9642306



More information about the Cvs-libraries mailing list