如何让Cabal Sandbox安装正确链接的HTML文档?

时间:2015-04-24 22:02:59

标签: haskell cabal haddock

我使用以下命令在沙箱中创建了一个cabal库:

documentation: True

我将行cabal.config添加到vector以确保生成文档,并在mylib.cabal中向cabal install --only-dependencies 包添加了依赖项。然后我跑了:

/scm/hs-proj/.cabal-sandbox
Configuring primitive-0.6...
Building primitive-0.6...
Installed primitive-0.6
Configuring vector-0.10.12.3...
Building vector-0.10.12.3...
Installed vector-0.10.12.3
Updating documentation index
/scm/hs-proj/.cabal-sandbox/share/doc/x86_64-osx-ghc-7.10.1/index.html

我得到了以下输出:

file:///scm/hs-proj/.cabal-sandbox/share/doc/x86_64-osx-ghc-7.10.1/Data-List.html
file:///scm/hs-proj/.cabal-sandbox/share/doc/x86_64-osx-ghc-7.10.1/Data-Vector.html

到目前为止一切顺利。

当我打开索引文件时,它包含许多软件包的链接,例如:

vector

但这些链接指向任何真实文件。请注意,对于Data.List等额外依赖项以及内置包列表Scenario 1: When in app: 1 User presses **backbutton**, apps goes to background and user is on the homescreen. 2 User presses the multitasking button and swips the app away. 3 The Service should restart because its sticky. Scenario 2: When in app: 1 User presses **homebutton**, apps goes to background and user is on the homescreen. 2 User presses the multitasking button and swips the app away. 3 The Service should restart because its sticky. 也是如此。

所以我认为我已经错误地安装了文档。有人可以指出我是如何错误地安装文档以及如何正确安装文档的?

1 个答案:

答案 0 :(得分:1)

这不是你的错,这是黑线鳕的known bug。 它只影响ghc 7.10,因此解决方法可能是使用ghc 7.8.4直到修复它。