je pile installé sur mon ordinateur pour haskell:de version Change ghci sur la pile
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>
Comme vous pouvez voir la version est encore 8.0.1. Ensuite, je mis à jour la pile comme suit:
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
Après avoir commencé stack ghci
à nouveau et j'ai encore la version 8.0.1, ce que je fais mal?
L'image montre que la version 8.0.2 ghci
a installé avec succès:
Le chemin est /Users/developer/.stack/programs/x86_64-osx/
Mise à jour Dans le chemin /Users/developer/.stack/
, il y a un dossier appelé global-project
et je changer le yaml comme suit:
Maintenant pile ghci exécuté sur la version 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
Pour passer à la dernière capture instantanée LTS (qui utilise actuellement GHC-8.0.2), vous pouvez exécuter 'stack config set resolver lts'. – sjakobi