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

2008-01-26 Thread Hackage
#164: bad error message when using configuration flags that were not defined
+---
  Reporter:  duncan |Owner:  [EMAIL PROTECTED]
  Type:  defect |   Status:  closed   
  Priority:  normal |Milestone:  Cabal-1.4
 Component:  Cabal library  |  Version:  1.2.0
  Severity:  minor  |   Resolution:  fixed
  Keywords: |   Difficulty:  easy (4 hours)  
Ghcversion:  6.4.2  | Platform:   
+---
Changes (by duncan):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 Fixed with:

 {{{
 Sat Jan 26 23:30:57 GMT 2008  Brent Yorgey [EMAIL PROTECTED]
   * fix for Trac #164: better error reporting for undefined flags

 Sun Jan 27 00:11:37 GMT 2008  Duncan Coutts [EMAIL PROTECTED]
   * Tweak flags error message and use monad failure rather than error
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/164#comment:3
Hackage http://haskell.org/cabal/
Hackage: Cabal and related projects___
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel


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

2008-01-24 Thread Hackage
#164: bad error message when using configuration flags that were not defined
+---
  Reporter:  duncan |Owner: 
  Type:  defect |   Status:  new
  Priority:  normal |Milestone:  Cabal-1.4  
 Component:  Cabal library  |  Version:  1.2.0  
  Severity:  minor  |   Resolution: 
  Keywords: |   Difficulty:  easy (4 hours)
Ghcversion:  6.4.2  | Platform: 
+---
Changes (by duncan):

  * platform:  Linux =
  * milestone:  = Cabal-1.4

-- 
Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/164#comment:1
Hackage http://haskell.org/cabal/
Hackage: Cabal and related projects___
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel


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

2007-10-16 Thread Hackage
#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___
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel