-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hpack adds Paths_foo to other-modules without adding dependency on base #251
Comments
What version constraint should it put on |
I don't know what constraints should be on And yes, I just tried specifying |
The constraints on I’m not sure why the I don’t know if setting |
The general approach of Hpack is to assume reasonable defaults while still giving the user 100% control when the defaults don't match the situation.
The main motivation for adding it is: We want the user to benefit from module inference for With the upcoming
It is the way to exercise 100% control over |
I'm not per se opposed to adding a dependency on
We could add an unrestricted dependency on |
Yet another problem of adding Paths automagically:
(I'm building on Mac with a case-insensitive FS.) I don't know what is actually causing the problem here, maybe some bug in Cabal, but I don't see without Paths. |
It's a Cabal bug: haskell/cabal#4739 |
@tfausak thanks! |
@tfausak @cblp Is this even related to |
@sol you are right, but my first thought was: why is |
Closing in favor of #303. Feedback and suggestions are very much welcome! |
hpack is adding
Paths_*
to theother-modules
sections of executables (and tests?), but it's not adding a corresponding dependency onbase
. I'm seeing build failures when trying to compile thePaths_
module.This is using stack 1.6.3/hpack 0.20.0 with the lts-10.3 resolver.
Example
package.yaml
:Corresponding
Main.hs
:Generated
waka.cabal
:Build errors:
It looks like either adding a dependency on
base
topackage.yaml
or removingPaths_waka
fromwaka.cabal
fixes the problem.It seems like if
hpack
is introducing a dependency onbase
by automatically addingPaths_waka
, it should also add the dependency.The text was updated successfully, but these errors were encountered: