[Hackage] #721: Unknown subsections are silently ignored

#721: Unknown subsections are silently ignored ----------------------------+----------------------------------------------- Reporter: ezyang | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.4 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 Library 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 section. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/721 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#721: Unknown subsections are silently ignored ----------------------------+----------------------------------------------- Reporter: ezyang | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.4 Severity: normal | Keywords: Difficulty: normal | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: unknown => normal Comment: Yep. Bug in the parser. It should complain about all unknown sections/subsections. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/721#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage