make:找不到模块“系统”

发布于 2024-10-07 08:38:52 字数 234 浏览 0 评论 0原文

昨天我用 cabal 安装了 darcs,失败了,今天我在运行 ghc --make node.hs 时得到了这个:

节点.hs:13:8: 找不到模块“系统”: 使用 -v 查看搜索到的文件列表。

阴谋集团似乎在某个地方破坏了它的系统模块。我可以做什么来修复这个问题?

我在 OSX 上使用 ghc 7.0.1 版本。

Yesterday I had a failing darcs install with cabal, today I get this when running ghc --make node.hs:

node.hs:13:8:
Could not find module `System':
Use -v to see a list of the files searched for.

Somewhere along the lines cabal seem to have borked it's system module. What can I do to repair this?

I use version 7.0.1 of ghc on OSX.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

表情可笑 2024-10-14 08:38:52

GHC 7 采用全新的 Haskell 2010 标准。因此,它不再包含遗留模块。推荐的方法是使用新模块(例如System.IO),或者使用-package haskell98开关再次启用支持。当然还有一个 LANGUAGE pragma 可以做到这一点。

GHC 7 uses the brand-new Haskell 2010 standard. Thus, it doesn't includes the legacy modules anymore. The recomment way is to use the new modules (like System.IO) instead or use the -package haskell98 switch to enable the support again. For sure there is also a LANGUAGE pragma to do this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文