Using cabal with multiple GHC versions

后端 未结 5 1005
粉色の甜心
粉色の甜心 2020-12-18 19:50

I got both ghc6 and ghc7 on my desktop. To install new packages (for the specific ghc version), I use cabal with the flag --with-compiler=<

5条回答
  •  一生所求
    2020-12-18 20:34

    You can create two configuration files, say ~/.cabal/config and ~/.cabal/config7, and use the un(der)documented option --config-file to select between the two.

提交回复
热议问题