Bug 425974 - package.conf gives haddock dirs with incorrect path
Summary: package.conf gives haddock dirs with incorrect path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 8
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Bryan O'Sullivan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 237398
TreeView+ depends on / blocked
 
Reported: 2007-12-17 15:16 UTC by Jón Fairbairn
Modified: 2008-01-15 04:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-15 04:18:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jón Fairbairn 2007-12-17 15:16:18 UTC
Description of problem:
Given eg --package base, haddock complains
that /usr/share/doc/ghc/libraries/base-3.0.0.0 doesn't exist.  Fair enough, it
doesn't, but /usr/share/doc/ghc-6.8.1/libraries/base-3.0.0.0 /does/ exist.

It looks to me that either haddock needs to know the version number of the
installed ghc-doc, or ghc or ghc-doc should install a symlink to the correct
version.

Version-Release number of selected component (if applicable):
haddock-0.8-1.fc7
ghc-6.8.1-2.fc8
ghc-doc-6.8.1-2.fc8
 

How reproducible:
Every time

Steps to Reproduce:
1. haddock --use-package base -h SomeHaddockedHaskell.hs
2.
3.
  
Actual results:
Warning: cannot use package base:
   HTML directory /usr/share/doc/ghc/libraries/base-3.0.0.0 does not exist.


Expected results:
links to the base package in the haddock output.

Additional info:

Comment 1 Jens Petersen 2008-01-03 04:57:24 UTC
It seems this is actually ghc's fault, at least package.conf is listing:

haddockInterfaces = ["/usr/share/doc/ghc/libraries/base-3.0.0.0/base.haddock"],
haddockHTMLs = ["/usr/share/doc/ghc/libraries/base-3.0.0.0"]

etc.


Comment 2 Bryan O'Sullivan 2008-01-15 04:18:41 UTC
This is fixed in ghc-6.8.2-8.fc8, which is in testing now.


Note You need to log in before you can comment on or make changes to this bug.