haskell - How to get Cabal Sandbox to install correctly linked HTML documentation? -


i created cabal library inside sandbox following commands:

cabal sandbox init cabal init 

i added line documentation: true cabal.config make sure documentation generated, , added dependency vector package in mylib.cabal. ran:

cabal install --only-dependencies 

i got following output:

/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 

so far good.

when opened index file contained links lot of packages, like:

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 

but of these links pointed real files. note case dependencies vector , built-in packages list data.list.

so think i've installed documentation incorrectly. can point out how i've installed documentation incorrectly , how correctly?

it's not fault, known bug in haddock. affects ghc 7.10, workaround use ghc 7.8.4 until fixed.


Comments