MaiaVictor
MaiaVictor

Reputation: 52957

Can you have different compilers and resolvers on Stack?

I have a Stack project that can build both GHCJS and GHC binaries. How can I specify on stack.yaml that builds should use both compilers?

Upvotes: 2

Views: 151

Answers (1)

epsilonhalbe
epsilonhalbe

Reputation: 15967

I think you have to either

  • use two different files, say ghc.yaml and ghcjs.yaml, you can then use stack --stack-yaml ghc.yaml or stack --stack-yaml ghcjs.yaml to use those

  • or directly use the commandline option --compiler

Upvotes: 3

Related Questions