Ticket #180 (closed enhancement: fixed)

Opened 3 years ago

Last modified 8 months ago

Should not “succeed” if all installed libraries’ interface files are of the wrong version

Reported by: wjt Owned by:
Priority: trivial Milestone:
Version: 2.4.2 Keywords:
Cc:

Description

I find myself with two versions of Haddock installed: the Debian-supplied 2.9.2 in /usr/bin, and a cabal-install-provided 2.4.2 in ~/.cabal/bin, which is first in my $PATH. (Presumably this was due to some package depending on a newer version of Haddock than Debian provided in the distant past.)

As a result, when I install any package (with 'documentation: True' in my ~/.cabal/config), I receive warnings as follows:

Installing executable(s) in /tmp/hmph/bin
Updating documentation index /tmp/hmph/share/doc/index.html
Warning: Cannot read /usr/lib/ghc-doc/haddock/Cabal-1.10.2.0/Cabal.haddock:
   "Interface file is of wrong version: /usr/lib/ghc-doc/haddock/Cabal-1.10.2.0/Cabal.haddock"
Skipping this interface.
Warning: Cannot read /usr/lib/ghc-doc/haddock/hunit-1.2.2.3/HUnit.haddock:
   "Interface file is of wrong version: /usr/lib/ghc-doc/haddock/hunit-1.2.2.3/HUnit.haddock"
Skipping this interface.
... and so on, for every installed library

Since all of my installed libraries' .haddock files are of the wrong version, it might be nice if haddock failed, rather than succeeding but writing an empty documentation index.

Change History

Changed 2 years ago by anonymous

  • milestone 2.10.0 deleted

Milestone 2.10.0 deleted

Changed 2 years ago by SimonHengel

AFAIK, it does not write an empty document anymore. It will just not hyperlink stuff from interface files that it can not read, but otherwise produce useful documentation.

Can we close this issue?

Changed 8 months ago by Fūzetsu

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.