Ticket #180 (new enhancement)
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
Note: See
TracTickets for help on using
tickets.
