【发布时间】:2019-04-27 07:52:33
【问题描述】:
我正在尝试为 Haskell 设置一个环境,并安装了堆栈。安装后我意识到 GHC 8.6.4 版本不是我需要的版本(8.0.2)。
compiler-exe: /home/manny/.stack/programs/x86_64-linux/ghc-tinfo6-
8.6.4/bin/ghc
compiler-bin: /home/manny/.stack/programs/x86_64-linux/ghc-tinfo6-
8.6.4/bin
compiler-tools-bin: /home/manny/.stack/compiler-tools/x86_64-linux-
tinfo6/ghc-8.6.4/bin
所以我安装了 GHC 8.0.2。我知道如果我更改全局配置文件,我可以解决问题,指示我想要的正确编译器,但是进行此类更改避免编辑配置文件的正确命令是什么?
我试过了:
stack config set --compiler ghc-8.0.2
没有成功。我的编译器还是 8.6.4。
~/.stack$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.4
谢谢!
【问题讨论】:
-
尝试编辑
/home/bradn/.stack/global-project/stack.yaml中的resolver字段。
标签: haskell ghc haskell-stack