New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haddock windows link problems #1406

Closed
donkeybonks opened this Issue Jul 31, 2013 · 6 comments

Comments

Projects
None yet
3 participants
@donkeybonks
Copy link

donkeybonks commented Jul 31, 2013

On windows the documentation index file is generated with links that look like this (in the HTML):

<a href="C:\Users\Kyle\AppData\Roaming\cabal\doc\parsec-3.1.3\html/Text-Parsec-Text.html">

Unfourtunately, when these are clicked Firefox gives an error like this;

      The address wasn't understood

      Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program

      You might need to install other software to open this address.

The fix is to add file:// to the beginning of all the links.

@donkeybonks

This comment has been minimized.

Copy link

donkeybonks commented Jul 31, 2013

ghc-pkg describe output:

Kyle@kyle-laptop /c/Users/Kyle/AppData/Roaming/cabal$ ghc-pkg describe parsec
WARNING: cache is out of date: c:/Program Files/Haskell Platform/2013.2.0.0\lib\package.conf.d\package.cache
  use 'ghc-pkg recache' to fix.
name: parsec
version: 3.1.3
id: parsec-3.1.3-0224413a0298a9e663172b89fb0f7105
license: BSD3
copyright:
maintainer: Antoine Latter <aslatter@gmail.com>
stability:
homepage: http://www.cs.uu.nl/~daan/parsec.html
package-url:
synopsis: Monadic parser combinators
description: Parsec is designed from scratch as an industrial-strength parser
             library.  It is simple, safe, well documented (on the package
             homepage), has extensive libraries and good error messages,
             and is also fast.  It is defined as a monad transformer that can be
             stacked on arbitrary monads, and it is also parametric in the
             input stream type.
category: Parsing
author: Daan Leijen <daan@microsoft.com>, Paolo Martini <paolo@nemail.it>
exposed: True
exposed-modules: Text.Parsec Text.Parsec.String
                 Text.Parsec.ByteString Text.Parsec.ByteString.Lazy Text.Parsec.Text
                 Text.Parsec.Text.Lazy Text.Parsec.Pos Text.Parsec.Error
                 Text.Parsec.Prim Text.Parsec.Char Text.Parsec.Combinator
                 Text.Parsec.Token Text.Parsec.Expr Text.Parsec.Language
                 Text.Parsec.Perm Text.ParserCombinators.Parsec
                 Text.ParserCombinators.Parsec.Char
                 Text.ParserCombinators.Parsec.Combinator
                 Text.ParserCombinators.Parsec.Error
                 Text.ParserCombinators.Parsec.Expr
                 Text.ParserCombinators.Parsec.Language
                 Text.ParserCombinators.Parsec.Perm
                 Text.ParserCombinators.Parsec.Pos
                 Text.ParserCombinators.Parsec.Prim
                 Text.ParserCombinators.Parsec.Token
hidden-modules:
trusted: False
import-dirs: C:\Users\Kyle\AppData\Roaming\cabal\parsec-3.1.3\ghc-7.6.3
library-dirs: C:\Users\Kyle\AppData\Roaming\cabal\parsec-3.1.3\ghc-7.6.3
hs-libraries: HSparsec-3.1.3
extra-libraries:
extra-ghci-libraries:
include-dirs:
includes:
depends: base-4.6.0.1-b986db9208cb55a6d6c2101a40dd23b7
         bytestring-0.10.0.2-09e2747d4ad435921fb3efa247901746
         mtl-2.1.2-94c72af955e94b8d7b2f359dadd0cb62
         text-0.11.3.1-020ae3c4fcba09f2a5d3fcdcbb4c09f0
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces: C:\Users\Kyle\AppData\Roaming\cabal\doc\parsec-3.1.3\html\parsec.haddock
haddock-html: C:\Users\Kyle\AppData\Roaming\cabal\doc\parsec-3.1.3\html
pkgroot: "C:\\Users\\Kyle\\AppData\\Roaming\\ghc\\x86_64-mingw32-7.6.3"

cabal --version

Kyle@kyle-laptop /c/Users/Kyle/AppData/Roaming/cabal$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
@feuerbach

This comment has been minimized.

Copy link
Contributor

feuerbach commented Jul 31, 2013

Please report haddock bugs at http://trac.haskell.org/haddock

@23Skidoo

This comment has been minimized.

Copy link
Member

23Skidoo commented Jul 31, 2013

Indeed, this looks like a Haddock bug, so closing. Please report this to Haddock developers.

@23Skidoo 23Skidoo closed this Jul 31, 2013

@donkeybonks

This comment has been minimized.

Copy link

donkeybonks commented Aug 1, 2013

Haddock thinks this is cabals fault. This turns out to be a duplicate of #1064 .

Also see on the haddock tracker; http://trac.haskell.org/haddock/ticket/218

@feuerbach

This comment has been minimized.

Copy link
Contributor

feuerbach commented Aug 1, 2013

Thanks for investigating. (Interestingly, the bug numbers are anagrams.)

Could you test the patch referenced above?

@donkeybonks

This comment has been minimized.

Copy link

donkeybonks commented Aug 1, 2013

Patch works perfectly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment