[Hackage] #668: Update simple distribution for LHC

Hackage cvs-ghc at haskell.org
Thu Apr 29 15:49:57 EDT 2010

#668: Update simple distribution for LHC
  Reporter:  dmp                  |        Owner:         
      Type:  enhancement          |       Status:  new    
  Priority:  normal               |    Milestone:         
 Component:  Cabal library        |      Version:
  Severity:  normal               |     Keywords:         
Difficulty:  very easy (<1 hour)  |   Ghcversion:  6.12.1 
  Platform:  Mac OS               |  
 Cabal needs some updates for its LHC support. Two changes are needed (and
 implemented in the attached patch):

   1) Change the hackRtsPackage to not fail with an error.
   The hackRtsPackage function was previously throwing an error when
   it found zero or more than one rts packages. The rts package is not
   needed in lhc, so the error is now ignored. This change now matches the
   behavior in the GHC distribution (Distribution/Simple/GHC.hs)

   2) Change the value passed to the odir for compiling C files.
   The current code was doing a version check to catch a bug with GHC <
   6.4. Since lhc is only version 0.9, it was also failing on the version
   check and passing an incorrect value to odir. Changed to use the
   correct value as with GHC > 6.4.

 I have attached a patch against the 1.8 branch that implements these

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

More information about the cabal-devel mailing list