Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #119 (closed defect: fixed)

Opened 8 years ago

Last modified 7 years ago

haddock doesn't work on Windows

Reported by: krasimir Owned by: refold
Priority: blocker Milestone: 2010.2.0.0
Component: Windows installer Keywords:


Haddock doesn't work with Haskell Platform 2010.1.0.0 because there is some hard-coded path which doesn't exist:

C:\gf>cabal haddock Running Haddock for gf-3.1.6... Preprocessing library gf-3.1.6... Preprocessing executables for gf-3.1.6... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: Win32-, array-, base-, base-, ffi-1.0, rts-1.0, bytestring-, containers-, directory-, extensible-exceptions-, filepath-, ghc-prim-, haskeline-, integer-gmp-, mtl-, old-locale-, old-time-, pretty-, process-, random-, syb-, time-1.1.4, utf8-string-0.3.6 Warning: gf-3.1.6:Data.Binary: Could not find documentation for exported module:


doc comment parse failed: variable@pattern Warning: PGF: could not find link destinations for:

Data.Binary.Binary GHC.IO.FilePath? GHC.Types.IO GHC.Classes.Eq GHC.Classes.O

rd GHC.Read.Read GHC.Show.Show GHC.Base.String Data.Maybe.Maybe PGF.Expr.BindTyp? e GHC.Types.Int GHC.Types.Double GHC.Bool.Bool Data.Either.Either PGF.Expr.MetaI d Text.PrettyPrint?.HughesPJ.Doc PGF.Parse.ErrorState? Data.Map.Map PGF.Probabilis tic.Probabilities System.Random.StdGen? PGF.VisualizeTree?.Labels haddock: internal Haddock or GHC error: E:\Program Files (x86)\Haskell\haddock-2 .7.2\html\haddock.css: openFile: permission denied (Permission denied)

Change History

Changed 8 years ago by refold

  • owner changed from dons to refold
  • status changed from new to assigned

Changed 7 years ago by refold

  • component changed from Platform to Windows installer

Changed 7 years ago by tsuyoshi

There are at least three problems with Haddock on Windows:

  1. “can't find a package database at E:\ghc\ghc-6.12.1\lib\package.conf.d” error as reported on haskell-cafe.
  2. Haddock fails to find haddock.css, as reported in this ticket.
  3. Haddock fails to find the pre-installed HTML files for existing packages, as reported in this ticket.

The problems 1 and 2 can be avoided by giving appropriate -B and -l options to haddock.exe, but I do not know how to avoid the problem 3.

I have Haskell Platform 2010.1.0.0 installed in C:\Program Files (x86)\Haskell Platform\2010.1.0.0 (the default location on 64-bit Windows).

>haddock -B "C:\Program Files (x86)\Haskell Platform\2010.1.0.0\lib" -l "C:\Prog
ram Files (x86)\Haskell Platform\2010.1.0.0\lib" -h --ignore-all-exports MyProg.
Warning: Main: could not find link destinations for:
    GHC.Real.Integral GHC.Classes.Eq Control.Monad.State.Lazy.State Data.Maybe.M
aybe GHC.Types.Int GHC.Integer.Type.Integer GHC.Base.String GHC.Types.IO

Changed 7 years ago by refold

  • priority changed from major to blocker

Changed 7 years ago by refold

  • milestone set to 2010.2.0.0

Changed 7 years ago by refold

Spent some time trying to build a relocatable haddock (w/o ghc-paths dependency), but to no avail. Apparently haddock has some magic that kicks in only when building it as a part of GHC (-fin-ghc-tree). The best solution ATM is probably shipping the 2.6.? version that comes with ghc 6.12.3.

Changed 7 years ago by refold

  • status changed from assigned to closed
  • resolution set to fixed

"Fixed" by downgrading to haddock 2.6.1 (the executable that comes with GHC 6.12.3).

Note: See TracTickets for help on using tickets.