如何更改 Hugs98 (Haskell) 查找模块和库的路径?

发布于 2024-09-13 03:57:34 字数 168 浏览 11 评论 0原文

我已经将 Ubuntu 安装为虚拟机,这样我就可以使用 Hugs98。然而,安装后我意识到我无法使用 Data.Char 和 Data.Ratio 模块。我必须使用 :load /usr/lib/etc 手动加载它们。发生这种情况似乎是因为模块不在应有的位置。谁能告诉我如何更改模块的默认路径,这样我就不必每次都加载它们?

I have installed Ubuntu as a virtual machine so I could use Hugs98. However, after installing I realised I couldn't use Data.Char and Data.Ratio modules. I had to load them manually with :load /usr/lib/etc . It seems this happens because the modules are not in the place where they should be. Can anyone please tell me how I can change the default path of the modules so I don't have to load them every time?

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

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

发布评论

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

评论(1

只等公子 2024-09-20 03:57:34

根据 Hugs 用户指南, -P 可以用于修改搜索路径。

不过,我强烈建议安装 GHC,以获得更现代的 Haskell 体验。

According to the Hugs user guide, -P can be used to modify the search path.

However, I would strongly recommend installing GHC, for a much more modern Haskell experience.

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