[Hackage] #813: Cabal should warn if the Cabal-Version range is too lax

Hackage cvs-ghc at haskell.org
Mon Mar 14 01:13:47 CET 2011


#813: Cabal should warn if the Cabal-Version range is too lax
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:          
      Type:  enhancement    |       Status:  new     
  Priority:  normal         |    Milestone:          
 Component:  Cabal library  |      Version:  1.10.1.0
  Severity:  normal         |     Keywords:          
Difficulty:  unknown        |   Ghcversion:          
  Platform:                 |  
----------------------------+-----------------------------------------------

Comment(by duncan):

 When you run `cabal check` it does issue a warning:
 {{{
 The following errors will cause portability problems on other
 environments:
 * The 'test-suite' section is new in Cabal 1.10. Unfortunately it messes
 up
 the parser in older Cabal versions so you must specify at least
 'cabal-version: >= 1.8', but notethat only Cabal 1.10 and later can
 actually
 run such test suites.
 }}}

 We do not however want to require that all .cabal files with test-suites
 specify `cabal-version: >= 1.10` because this would then prevent such
 packages from building with older Cabal versions. Cabal-1.8 will just
 ignore unknown sections, so it can continue to build packages that have
 test-suite sections.

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



More information about the cabal-devel mailing list