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

Hackage trac at galois.com
Tue Jan 29 15:39:03 EST 2008


#191: Hackage should check for common QA problems in ghc-options
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:                 
      Type:  enhancement    |       Status:  new            
  Priority:  normal         |    Milestone:  Cabal-1.4      
 Component:  Cabal library  |      Version:  1.2.2.0        
  Severity:  normal         |   Resolution:                 
  Keywords:                 |   Difficulty:  easy (<4 hours)
Ghcversion:  6.8.1          |     Platform:                 
----------------------------+-----------------------------------------------
Changes (by duncan):

  * difficulty:  very easy (<1 hour) => easy (<4 hours)

Comment:

 And another...

 Ticket #271 has a .cabal file with some nice examples. Not only does it
 use `-O2` with little reason (probably) and `-optl-Wl,-s`, but it also
 uses `ghc-options: -lcrypt`. Grrr.

  * `-l -L -I` flags in ghc-options or cc-options should give a QA error
    * `-lfoo` should be `extra-libraries: foo`
    * `-Lbar` should be `extra-lib-dirs: bar`
    * `-Ibaz` should be `include-dirs: baz`

 The other QA bug in the #217 .cabal file is that it puts files in `extra-
 source-files:` that get included anyway. I'm not sure if this would be an
 easy QA check, it should be doable as an error in sdist however if it
 finds that it wants to create a fileset with duplicate source file paths.
 We can revisit that one perhaps.

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


More information about the cabal-devel mailing list