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

Use cabal's code-generators to reimplement singletons-base test suite without custom Setup.hs #532

Open
RyanGlScott opened this issue Aug 23, 2022 · 0 comments

Comments

@RyanGlScott
Copy link
Collaborator

Cabal-3.8 debuts a new code-generators feature that can be used to generate modules when preprocessing a test suite and include them as part of building the test suite. One of the intended use cases for a code generator is to fill the role that is often served today by custom Setup.hs scripts. In particular, singletons-base's custom Setup.hs script seems like a prime candidate for being implemented as a code generator, since the primary reason for using a custom Setup.hs script is to learn what -package-id arguments to pass to GHC to get the dependencies right. That is exactly the sort of information that code generators have access to.

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

No branches or pull requests

1 participant