[Hackage] #721: Unknown subsections are silently ignored

Hackage cvs-ghc at haskell.org
Wed Jul 28 19:04:19 EDT 2010

#721: Unknown subsections are silently ignored
  Reporter:  ezyang         |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
 Sections not on the top-level (like those used in conditionals) appear to
 be ignored silently if they are not recognized.

 Name:                cabal-elseif
 Version:             0.1
 License:             BSD3
 License-file:        LICENSE
 Category:            Bug
 Build-type:          Simple
 Cabal-version:       >=1.2

     if os(linux) {
             Ghc-options: -O2
     } elseif os(windows) {
             Ghc-options: -O

 Expected behavior: Cabal warns that elseif is not a supported section name
 Actual behavior: Cabal silently accepts this and ignores the elseif

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

More information about the cabal-devel mailing list