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

Hackage cvs-ghc at haskell.org
Wed Mar 23 12:51:17 CET 2011

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

Comment(by Evi1M4chine):

 Replying to [comment:13 duncan]:
 > The file name does not need to be Main.hs, it can be any name.hs that
 you like.

 > The reason we do not support `-main-is` is because it is a ghc-specific
 extension that does not work for other Haskell implementations.
 You already said that. I explained why this is a moot point. So actually
 this can be replaced with "". :)

 > Your example is easy to deal with. If you want one module with two
 targets, define both targets in one module, then have two other 2-line .hs
 files to be the main modules, e.g.:

 Aand that’s ''exactly'' what I meant with the pointless “mess”. :)

 Ok, I’ll simply not use cabal, and be done with it. It’s not even worth
 forking it, since Portage already does everything I don’t want to do

 I know, I don’t pay money and don’t have a contract, so I can not make and
 demands anyway. But: FAIL.

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

More information about the cabal-devel mailing list