Skip to content

Add 'Hooks' to the build-types (since cabal 3.14) #616

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lxsameer
Copy link

@lxsameer lxsameer commented Jul 4, 2025

Cabal >=3.14, introduced Hooks build type that supposed to be the replacement for old Setup.hs stuff. This little patch just adds that to the BuildType data type so users can start using it.

Copy link
Owner

@sol sol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Thanks for looking into this!

Can you please:

  • update the tests
  • update the README
  • infer cabal-version: 3.14 when build-type: Hooks + add corresponding test
  • add changelog entry

I think we also want to default build-type to Hooks when SetupHooks.hs exists. But that can be a separate PR.

@mpilgrem
Copy link
Collaborator

mpilgrem commented Jul 4, 2025

@lxsameer, see Hpack.Config.makeCabalVersion.

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

Successfully merging this pull request may close these issues.

3 participants