Skip to content

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

Open
lxsameer wants to merge 1 commit intosol:mainfrom
lxsameer:main
Open

Add 'Hooks' to the build-types (since cabal 3.14)#616
lxsameer wants to merge 1 commit intosol:mainfrom
lxsameer:main

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