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

Hackage trac at galois.com
Thu Nov 15 13:08:59 EST 2007

#179: support GHC's main-is extension
  Reporter:  duncan       |        Owner:         
      Type:  enhancement  |       Status:  new    
  Priority:  normal       |    Milestone:         
 Component:  Cabal        |      Version:
  Severity:  normal       |   Resolution:         
  Keywords:               |   Difficulty:  normal 
Ghcversion:  6.4.2        |     Platform:  Linux  
Comment (by duncan):

 So the question is how would we support this extension? Perhaps by
 specifying a module name for {{{main-is:}}} ? Would that be
 distinguishable from a file name? It wouldn't have a file extension.
 Perhaps it'd be better to be explicit and specify {{{main-module-is:

 Note that we do need both a file name and a module name because we have to
 pass that file to ghc since it's very common for people to use main
 modules that are not called {{{Main.hs}}}.

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

More information about the cabal-devel mailing list