如何在 ghc 中链接模块?
我有一个使用 Data.Set 和 Data.IntMap 的 haskell 程序,我需要给 GHC 提供哪些标志才能让它链接这些库?我知道这是一个简单的问题,但是手册页对我没有帮助,我不知道该去哪里查找。
I have a haskell program that uses Data.Set and Data.IntMap, what flags do I need to give GHC to get it to link those libraries in? Simple question, I know, but the man pages didn't help me and I don't know where to look.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加
--make
将告诉 GHC 查找所有依赖项并自动为您完成所有链接:
Adding
--make
will tell GHC to find all the dependencies and do all the linking for you automatically: