[Hackage] #179: support GHC's main-is extension

Hackage cvs-ghc at haskell.org
Tue Jun 7 19:22:06 CEST 2011


#179: support GHC's main-is extension
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:         
      Type:  enhancement    |       Status:  closed 
  Priority:  low            |    Milestone:  _|_    
 Component:  Cabal library  |      Version:  1.2.2.0
  Severity:  normal         |   Resolution:  wontfix
  Keywords:                 |   Difficulty:  normal 
Ghcversion:  6.4.2          |     Platform:  Linux  
----------------------------+-----------------------------------------------

Comment(by Evi1M4chine):

 Replying to [comment:15 cjs]:
 I just checked the Cabal source, and there’s already tons of compiler-
 specific stuff in there. Basically there are separate files for each
 compiler, and even a whole directory named GHC. So they are way beyond “We
 can’t write something specifically for one compiler.”. Because basically,
 the whole code relies on code specific to certain compilers.

 Also it’s pretty easy to extend (for a Cabal developer). Just add a field
 to the “Executable” data type in Distribution.PackageDescription, and only
 make the GHC implementation not ignore it, when building the GHC command
 line. Done. About 5-10 minutes for a Cabal developer. (Unless I’m missing
 something, like Unit tests, etc, of course.)

 Hey, if any Cabal developer reads this: Is there anything we can make, to
 give you a motivation to do it? Money? A good beer? Something you need? Or
 a way to put it in that respects the project philosophies?
 If I’m able to provide it, I will. Just ask, man. :)

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



More information about the cabal-devel mailing list