我看到有一个很好的包系统叫做 Cabal 来处理依赖解析。所以我正在尝试安装它,以便我可以让它为我安装 Haskell OpenGL 模块。但是,Cabal 本身有很多依赖项。有没有办法在不手动解决所有依赖项的情况下安装 Cabal?我尝试运行引导程序,但似乎没有这样做,因为它报告缺少模块 parsec 和 network (它们又具有自己的依赖项)。
在我安装 mtl 模块之前,手动构建 dep 让我深了 3 层:
user@machine:~/haskell/mtl-1.1.0.2$ runghc Setup build
Preprocessing library mtl-1.1.0.2...
Building mtl-1.1.0.2...
Control/Monad/Cont.hs:74:7:
Could not find module `Control.Monad':
Perhaps you haven't installed the profiling libraries for package base?
Use -v to see a list of the files searched for.