Skip to content
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

Infer copyright from LICENSE file #418

Open
sol opened this issue Jan 3, 2021 · 1 comment
Open

Infer copyright from LICENSE file #418

sol opened this issue Jan 3, 2021 · 1 comment

Comments

@sol
Copy link
Owner

sol commented Jan 3, 2021

We already do this for the license itself, so extending this to copyright is a natural continuation of DRYing up things.

@sol
Copy link
Owner Author

sol commented Jan 3, 2021

An other option would be to generate the LICENSE file from license and copyright. In a way this would be more convenient, as you could maintain all the information in package.yaml to get an up-to-date LICENSE file.

I certainly like it. However, it is less consistent with how hpack currently operates: Currently we look at package.yaml + other source files and generate a .cabal file. That is, currently we don't generate any other files but .cabal. If we break with this convention, we could even consider to generate things like Setup.lhs or even add extension points for third-party plug-ins (think test/Spec.hs for hspec-discover). But not sure yet if this is the right direction.

Feedback welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant