
#639: 'source-repository' should not necessarily require 'cabal-version >= 1.6' ----------------------------+----------------------------------------------- Reporter: andersk | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- `Distribution.PackageDescription.Check` has this check: {{{ -- check use of "source-repository" section , checkVersion [1,6] (not (null (sourceRepos pkg))) $ PackageDistInexcusable $ "The 'source-repository' section is new in Cabal-1.6. " ++ "Unfortunately it messes up the parser in earlier Cabal versions " ++ "so you need to specify 'cabal-version: >= 1.6'." }}} However, I’ve found that Cabal 1.2 can successfully parse a cabal file with a 'source-repository' section (with a warning), _if_ that section is at the end of the file. Perhaps the check could be loosened to allow (and suggest) this? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/639 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects