5

More broadly, I'd like to be able to use Haskell Stack as a build tool for projects in a university class. The main issue I've run into is when students try to use Haskell stack to build their project, they very quickly run up against their space quotas, as stack installs a sandboxed GHC compiler and all of the libraries locally.

I would like to be able to add flags to the project file so that the system GHC and libraries are used to work around this. Right now our IT department has the system GHC part working, but stack is still installing all libraries locally.

I'm open to other solutions.

Ben MacAdam
  • 151
  • 3
  • 2
    I'm not completely sure, but I'd try [`system-ghc: true, install-ghc: false`](https://docs.haskellstack.org/en/stable/yaml_configuration/#system-ghc) and some LTS which uses the same GHC version as the installed one (otherwise, I think stack has to download it per-user). – chi Oct 17 '19 at 18:46
  • Unfortunately, the LTS we're using doesn't have all of the packages necessary for this project. – Ben MacAdam Oct 17 '19 at 18:57
  • @BenMacAdam Did you find some kind of workable solution? Our university IT team is struggling with the same issues. – glyn Jan 18 '23 at 09:17
  • I did not, sorry. – Ben MacAdam Jan 19 '23 at 22:29

0 Answers0