更改ghci的版本:上我已经堆叠安装在我的电脑上Haskell的堆栈
Developers-MacBook-Pro:~ developer$ stack ghci
Configuring GHCi with the following packages:
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /private/var/folders/2x/t_2cl03x2092dkzvc702d7lc0000gn/T/ghci2170/ghci-script
Prelude>
正如你所看到的版本仍然是8.0.1。再次
Developers-MacBook-Pro:~ developer$ stack upgrade
Current Stack version: 1.3.2, available download version: 1.4.0
Newer version detected, downloading
Querying for archive location for platform: osx-x86_64-static
Querying for archive location for platform: osx-x86_64
Downloading from: https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-osx-x86_64.tar.gz
Download complete, testing executable
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd (4640 commits) x86_64 hpack-0.17.0
New stack executable available at /Users/developer/.local/bin/stack
我开始stack ghci
后,我已经得到了还是8.0.1版,我在做什么错了:那我升级堆栈如下?
的路径是/Users/developer/.stack/programs/x86_64-osx/
更新 在路径/Users/developer/.stack/
,有一个叫global-project
和我的文件夹改变yaml如下:
现在堆栈ghci的在8.0.2版本上运行:
Developers-MBP:~ developer$ stack ghci
Configuring GHCi with the following packages:
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /private/var/folders/2x/t_2cl03x2092dkzvc702d7lc0000gn/T/ghci526/ghci-script
要切换到最新的LTS快照(目前使用GHC-8.0.2),您可以运行'stack config set resolver lts'。 – sjakobi