upgrading the ghc version being used by haskell stack

后端 未结 1 1342
[愿得一人]
[愿得一人] 2021-01-13 07:15

I\'m trying to update my ghc version installed for haskell stack from version 8.0.2 to 8.2.1 but seems like I am missing something.

[user@localhost ~]$ stack         


        
相关标签:
1条回答
  • 2021-01-13 08:09

    There are 2 options.

    temporary solution is every time you have to provide the version of ghc while loading stack.

    ghc --resolver ghc-8.2.1 ghci
    

    If you don't give the version of ghc, stack loads the default version.

    The second option is permanently configuring the ghc version for stack as default version. Below is the step used for that

    configure *resolver: ghc-8.2.1* in the file *.stack/global-project/stack.yaml*
    

    and restart your stack.

    0 讨论(0)
提交回复
热议问题