commercialhaskell / commercialhaskell/stack
Prepare Stack for Cabal's changing approach to hooks
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
Motivation:
* https://github.com/well-typed/hooks-build-type
* https://github.com/haskellfoundation/tech-proposals/pull/60
* Haddock documentation for [Cabal-3.11.0.0](https://ghc.gitlab.haskell.org/ghc/doc/libraries/Cabal-3.11.0.0-inplace/index.html)
Currently:
* Stack itself has build type `Custom`, which makes use of `generateBuildModule`; and
* Stack uses `replHook` in `StackSetupShim.hs` to cause Cabal to create the autogenerated files for every configured component, without building everything, before Stack uses `ghc --interactive`.
Related question: https://github.com/haskellfoundation/tech-proposals/pull/60#issuecomment-2028475305
Contributor guide
Assessment
This issue has not been assessed yet.