[Hackage] #164: bad error message when using configuration flags that were not defined

Hackage trac at galois.com
Tue Oct 16 17:21:45 EDT 2007


#164: bad error message when using configuration flags that were not defined
------------------------------+---------------------------------------------
  Reporter:  duncan           |        Owner:       
      Type:  defect           |       Status:  new  
  Priority:  normal           |    Milestone:       
 Component:  Cabal            |      Version:  1.2.0
  Severity:  minor            |     Keywords:       
Difficulty:  easy (<4 hours)  |   Ghcversion:  6.4.2
  Platform:  Linux            |  
------------------------------+---------------------------------------------
 Using a flag in an if condition when that flag has not been previously
 defined gives an unhelpful error message:

 {{{
 -- flag foo never declared:

 if flag(foo)
   blah:
 else
   other:
 }}}

 We get the error message:

 {{{
 cabal-setup: Environment not defined for all free vars
 }}}

 The error is reported by {{{Distribution.Configuration.simplifyCondTree}}}
 but the error should probably be checked for much earlier.

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


More information about the cabal-devel mailing list