(Imported from Trac #236, reported by @kolmodin on 2008-02-11)
Cabal generates the haddock-interfaces and haddock-html package fields even if the haddock documentation is not built nor installed.
Instead of assuming haddock is used, it should add the fields iff needed upon register (install = copy + register), where enough information should be available to make a more clever installation.
Example ghc-pkg describe binary built without haddock:
maintainer: Lennart Kolmodin, Don Stewart <firstname.lastname@example.org>
description: Efficient, pure binary serialisation using lazy ByteStrings.
Haskell values may be encoded to and form binary formats,
written to disk as binary, or sent over the network.
Serialisation speeds of over 1 G\/sec have been observed,
so this library should be suitable for high performance
category: Data, Parsing
author: Lennart Kolmodin <email@example.com>
exposed-modules: Data.Binary Data.Binary.Put Data.Binary.Get
depends: base-18.104.22.168 bytestring-0.9.0.4 base-22.214.171.124
(Imported comment by @dcoutts on 2008-02-11)
See also http://hackage.haskell.org/trac/ghc/ticket/2958
Closing as there's been no activity in years.
We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.