#217: Main modules in .hsc files are not included in sdist
----------------------------+-----------------------------------------------
Reporter: gwern | Owner:
Type: defect | Status: reopened
Priority: normal | Milestone: Cabal-1.4
Component: Cabal library | Version: 1.2.3.0
Severity: normal | Resolution:
Keywords: | Difficulty: normal
Ghcversion: 6.8.2 | Platform:
----------------------------+-----------------------------------------------
Comment (by duncan):
Main modules that need pre-processing half work. :-)
The half that does not work is including them into the src tarball.
Perhaps we are free to change the interpretation of `main-is` when using
pre-processors since due to the sdist bug it would have been hard for any
existing packages to use that feature.
I think `main-is` is a bit of a wart. It specifies some kind of file name
where all the other bits us a module name. This is reflected internally in
the code where most of this stuff works in terms of module names and the
`main-is` has to be hacked in. :-(
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/217#comment:8>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel