-
Notifications
You must be signed in to change notification settings - Fork 697
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
Docs: difficult to discover "common" and "import" #5860
Comments
Related #5705 |
/cc @phadej |
It seems like a new section between 3.1.4. Modules imported from other packages and 3.1.5. Building the package would be a natural place. Either that or simply expanding section 3.1.4 to include an "Also, you can factor out shared |
The two sentences that you write in your second stanza would have saved me a good chunk of confusion today, @m-renaud. |
I'll put together a PR today when I get a chance :) |
This is great! Thanks! |
Having had a hazy idea that
cabal-install
had the ability to define common sets of dependencies for components, I went hunting for a description of how to do it. Searching for terms like "cabal include subsections", "cabal shared dependencies" and the like did not help me, and there was nothing I could find on the Cabal quickstart page with C-f in my browser. I even read the Cabal changelog since version 2.0, and found no mention of the feature.I asked on the internal chat at work, and someone eventually pointed me to the right spot.
It seems unfortunate that this feature was so difficult to discover, because it's very useful.
Because it's most hugely a win for
build-depends
, I would suggest that there be a pointer to it in thebuild-depends
docs, and also to havecabal init
generate a file that has it as an example.The text was updated successfully, but these errors were encountered: