更改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