Reputation: 52957
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
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
ghc
or ghcjs
by setting the resolver
(see haskellstack.org/config#resolver)or directly use the commandline option --compiler
Upvotes: 3