[Hackage] #368: The "optimization" option in ~/.cabal/config does not work

Hackage cvs-ghc at haskell.org
Thu Apr 7 11:52:47 CEST 2011


#368: The "optimization" option in ~/.cabal/config does not work
---------------------------------+------------------------------------------
  Reporter:  guest               |        Owner:                   
      Type:  defect              |       Status:  new              
  Priority:  normal              |    Milestone:  cabal-install-0.8
 Component:  cabal-install tool  |      Version:  1.4.0.1          
  Severity:  minor               |     Keywords:                   
Difficulty:  normal              |   Ghcversion:  6.8.2            
  Platform:  Linux               |  
---------------------------------+------------------------------------------

Comment(by mikolaj):

 I still see the problem with Cabal-1.10.1.0 (GHC 6.12.1). It's painful
 when you want to use assertions, since they are ignored with
 optimizations. The workaround I use is to do "cabal install --disable-
 optimization", but the extra option is easy to miss and then the
 assertions are useless.

 BTW, I'm still wondering why Haskellers apparently don't use assertions
 much. I also wonder, whey assertions are disabled by optimizations --- for
 some kinds of software, where crashes are acceptable, but wrong answers
 are not, I want to keep them even in super optimized release mode
 packages.

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



More information about the cabal-devel mailing list