How to use different ghc assemblies with stack?

I would like to have different assemblies of the same version of GHC, not related to ABI, and use them in different projects.

(In my case, the difference between the lines is integer - plain vs gmp.)

The comments on this question show how to add your own ghc flavor to stack-setup-2.yaml . But how can I indicate which ghc build to use in each case or project?

those. I am looking for one (even better, both):

  • The ability to tell stack.yaml whether to use an integer or gmp assembly.
  • The ability to specify in the stack build time it takes to create.
+7
haskell ghc haskell-stack
source share
1 answer

You can use the ghc-variant or --ghc-variant .

If you are on Windows and using the standard stack-setup-2.yaml , then creating with --ghc-variant integersimple should use a different GHC than if you were using --ghc-variant standard .

+7
source share

All Articles