如何升级堆栈ghc [英] How to upgrade stack ghc

查看:134
本文介绍了如何升级堆栈ghc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

stack ghc - --version



Glorious Glasgow Haskell编译系统,版本7.10.3

我想升级到ghc 8。



如何告诉堆栈升级ghc?

方案

来自IRC的dysfun回答了我的问题,所以我将在此处发布以获取更多后人。



要更新用于编译项目的ghc,去yaml文件。
里面有解析器字段。相应地更新。



对于我的情况,我发现这个网页 https://www.stackage.org/lts-9.0


stack ghc -- --version

The Glorious Glasgow Haskell Compilation System, version 7.10.3

I want to upgrade to ghc 8.

How can I tell stack to upgrade ghc?

解决方案

dysfun from the IRC answered my question so I will post it here for more posterity.

To update the ghc used to compile a project, go to the yaml file. In there is the resolver field. Update that accordingly.

For my case, I found this webpage https://www.stackage.org/lts-9.0

这篇关于如何升级堆栈ghc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆