[Hackage] #947: let "cabal -fSomeFlag" produce error for undeclared flags

Hackage cvs-ghc at haskell.org
Sat Apr 28 08:25:31 CEST 2012


#947: let "cabal -fSomeFlag" produce error for undeclared flags
---------------------------------+------------------------------------------
  Reporter:  Oblosys             |        Owner:          
      Type:  enhancement         |       Status:  new     
  Priority:  normal              |    Milestone:          
 Component:  cabal-install tool  |      Version:  1.10.2.0
  Severity:  normal              |     Keywords:          
Difficulty:  unknown             |   Ghcversion:          
  Platform:                      |  
---------------------------------+------------------------------------------
Description changed by kosmikus:

Old description:

> Typos in flags can lead to confusing problems, especially with large
> projects that take a long time to build. A simple check could be quite
> useful:
>
> ~> hconfigure -fNonExistentFlag -fSomeFlag
> cabal: undeclared flag 'NonExistentFlag'. Declared flags are:
>   ExistentFlag, SomeFlag

New description:

 Typos in flags can lead to confusing problems, especially with large
 projects that take a long time to build. A simple check could be quite
 useful:
 {{{
 ~> hconfigure -fNonExistentFlag -fSomeFlag
 cabal: undeclared flag 'NonExistentFlag'. Declared flags are:
   ExistentFlag, SomeFlag
 }}}

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/947#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list