# An external command system for cabal: what would you do with it?

**URL:** <https://discourse.haskell.org/t/an-external-command-system-for-cabal-what-would-you-do-with-it/7114>\
**Category:** Announcements\
**Created:** [July 26, 2023, 9:50pm UTC](https://discourse.haskell.org/t/an-external-command-system-for-cabal-what-would-you-do-with-it/7114 "2023-07-26T21:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![andreabedini](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/andreabedini/32/2201_2.png) [@andreabedini](https://discourse.haskell.org/u/andreabedini)\
**Post date:** [July 27, 2023, 12:55pm UTC](https://discourse.haskell.org/t/an-external-command-system-for-cabal-what-would-you-do-with-it/7114/6 "2023-07-27T12:55:22Z")

</div>

> [@andreabedini](#):
>
> What environment variables would cabal set?

Answering my own question:

- `GHC_ENVIRONMENT` is set to a temp file containing a GHC environment with all the project dependencies. 🤔 what about setup dependencies? ~~I need to check.~~ [They are not included](https://github.com/haskell/cabal/blob/4aa5f88618a29cb53b988a8ae859caa2c70a6e62/cabal-install/src/Distribution/Client/ProjectPlanOutput.hs#L924-L957).
- The path to all exes in the plan in added to `PATH`.

---

_[View the full topic](https://discourse.haskell.org/t/an-external-command-system-for-cabal-what-would-you-do-with-it/7114)._
