#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:13 duncan]: > The file name does not need to be Main.hs, it can be any name.hs that you like. Correct. > 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 myself. 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 _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel