shell hooks for augmenting how cabal-install does various actions?
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
maybe theres a ticket about this, but i was talking with @hasufell about cabal and he mentioned that in old discussions with HVR, there was the idea of making it easier to glue cabal into a overall toolchain if there were the sort of shell hooks a la git-hooks or https://paludis.exherbo.org/configuration/hooks.html
with example application for example being:
``
and then you could hook into phases of like pre_configure and invoke ghcup automatically, installing the requested project ghc version
``
at the moment, i think cabal's pre/post-`$FOO` (for some value of FOO) hooks are only supported as haskell function call backs, which hits a different point in the ease of scripting tradeoffs
Contributor guide
Research direction
Start with cabal-install's existing pre/post-$FOO Haskell callbacks and review the earlier discussions referenced in the issue. Clarify which action phases should expose shell hooks and how a script such as ghcup would be invoked; done means cabal-install has an agreed, documented hook interface that is usable from shell tooling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100