-
Notifications
You must be signed in to change notification settings - Fork 843
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
Support sub-library dependencies #5659
Conversation
@mpilgrem this seems like a major issue. Has anyone looked into it? |
@hasufell, I think the short answer is No. I think the issue falls outside the scope of my own capabilities. My understanding of the issue is that the The Stack issue #5318 gives the example of a Cabal package As regards a version of
|
@mpilgrem I've used this feature in plugins-for-blobs. I've had no problem with it and really like being able to package related libraries together (as we can already do for executables and test suites). library thoralf-plugin-defs
visibility: public
exposed-modules:
Plugins.Thoralf.UnitDefs
hs-source-dirs:
thoralf-uom/defs/src
build-depends:
base >=4.9.1.0 && <5
, plugins-for-blobs:thoralf-encode
, plugins-for-blobs:thoralf-plugin
, plugins-for-blobs:thoralf-plugin-uom
, plugins-for-blobs:thoralf-theory
, plugins-for-blobs:uom-quantity
, plugins-for-blobs:uom-th
, template-haskell >=2.9 I've tried building this with stack too and it works, see #5839 with the rebased the pull request for sub-library dependencies from @kk-hainq. I tested this on a much larger project and found a problem. I built stack depending on stack/src/Stack/Types/Config.hs Lines 2039 to 2045 in 55291b3
|
@philderbeast, on the compiler's Cabal version, see my comment on your pull request. |
@philderbeast, the |
I am going to close this pull request because: (a) its main ideas (extending the |
Drunk attempt to address #5318. Would probably need #5558 first, and a lot of refactoring for dependency and sub-library code in general.
Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!