When I run cabal build
it uses some Haskell compiler to build the executables and/or test-suites in my .cabal file.
Can I control which compiler is used for the different targets? Ideally, I would like to have separate build targets that use ghc and ghcjs in the same .cabal
file. It seems to me that someone might want to use ghc and hugs or two version of ghc in the same project. Is this currently possible?
Also, how does cabal decide what compiler to use when running cabal build
? I saw there is a compiler option in my ~/.cabal/config
file but changing it from ghc
to ghcjs
and uncommenting it, did not seem to change what cabal build
does.