[Hackage] #191: Hackage should check for common QA problems in ghc-options

Hackage trac at galois.com
Sat Dec 15 19:53:49 EST 2007


#191: Hackage should check for common QA problems in ghc-options
--------------------------+-------------------------------------------------
  Reporter:  duncan       |        Owner:         
      Type:  enhancement  |       Status:  new    
  Priority:  normal       |    Milestone:         
 Component:  Cabal        |      Version:  1.2.2.0
  Severity:  normal       |     Keywords:         
Difficulty:  normal       |   Ghcversion:  6.8.1  
  Platform:  Linux        |  
--------------------------+-------------------------------------------------
 Simple test that many packages have is dodgy ghc-options, or options that
 would be suitable for development but not release. It should be easy to
 check for these.

 Suggestions:

 {{{ghc-options: -Wall -Werror}}} is a very bad combination. It means the
 package will break silently as soon as the next version of ghc adds a new
 warning, which generally does happen every major release.

 {{{ghc-options: -fasm}}} is unnecessary and breaks on all arches except
 for x86, x86-64 and ppc.

 {{{ghc-options: -O}}} is unnecessary since Cabal does that itself and it
 prevents people from configuring with the {{{--disable-optimization}}}
 flag.

 {{{ghc-options: -O2}}} may be necessary in some circumstances but people
 should not use it routinely for the same reasons as -O and since -O2 take
 a lot longer to compile most of the time and usually with little benefit.


 {{{ghc-options: -ffi}}} or {{{-fffi}}} use extensions:
 ForeignFunctionInterface.

 Once #190 is implemented then {{{ghc-options: -fvia-C}}} will be
 unnecessary too.

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


More information about the cabal-devel mailing list