如何更改 Hugs98 (Haskell) 查找模块和库的路径?
我已经将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 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.