commercialhaskell / commercialhaskell/stack

Prepare Stack for Cabal's changing approach to hooks

Open
#6,542 4 comments 0 reactions 1 assignee Claimed by @mpilgrem View on GitHub
component: setup type: enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.