作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 Data.Set 和 Data.IntMap 的 haskell 程序,我需要给 GHC 哪些标志才能让它链接这些库?简单的问题,我知道,但是手册页没有帮助我,我不知道在哪里看。
最佳答案
添加 --make
将告诉 GHC 查找所有依赖项并自动为您完成所有链接:
GHC will figure out all the modules in the program by following the imports from these initial modules. It will then attempt to compile each module which is out of date, and finally, if there is a
Main
module, the program will also be linked into an executable.
关于haskell - 如何在 ghc 中链接模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3956666/
我是一名优秀的程序员,十分优秀!