Cabal, haddock and functorm-1.0.1 problem

Hello, when generating Haddock documentation of functorm-1.0.1 via runhaskell, no description for module Data.FunctorM is generated. However, when running Haddock manually and omitting to read the base interface, documentation is generated, although it lacks (naturally) the links to some elements of base. What could go wrong here? What might be the problem? Below are the outputs of runhaskell and the manual run of Haddock. Thanks, Sascha $ runhaskell Setup.lhs configure --prefix=/home/user5 configure: Reading installed packages... Configuring functorm-1.0.1... configure: Dependency base-any: using base-2.0 configure: Using install prefix: /home/user5 configure: Binaries installed in: /home/user5/bin configure: Libraries installed in: /home/user5/lib/functorm-1.0.1/ghc-6.6 configure: Private binaries installed in: /home/user5/libexec configure: Data files installed in: /home/user5/share/functorm-1.0.1 configure: Using compiler: /usr/bin/ghc configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: /usr/bin/ghc-pkg configure: Using ar found on system at: /usr/bin/ar configure: Using haddock found on system at: /usr/bin/haddock configure: Using ld found on system at: /usr/bin/ld configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /usr/bin/runghc configure: No runhugs found configure: Using tar found on system at: /bin/tar configure: Using happy: /usr/bin/happy configure: Using alex: /usr/bin/alex configure: Using hsc2hs: /usr/bin/hsc2hs configure: No c2hs found configure: Using cpphs: /usr/bin/cpphs configure: No greencard found $ runhaskell Setup.lhs haddock -v Creating dist/build/tmp (and its parents) Creating dist/doc/html/functorm (and its parents) Preprocessing library functorm-1.0.1... Running Haddock for functorm-1.0.1... /usr/bin/haddock --version /usr/bin/ghc-pkg field base-2.0 haddock-interfaces /usr/bin/ghc-pkg field base-2.0 haddock-html Creating dist/build/tmp/./Data/ (and its parents) /usr/bin/haddock --html --odir=dist/doc/html/functorm --title=functorm-1.0.1: Data.FunctorM (compatibility package) --package=functorm-1.0.1 --dump-interface=dist/doc/html/functorm/functorm.haddock --prologue=functorm-1.0.1-haddock-prolog.txt --read-interface=/usr/share/ghc-6.6/html/libraries/base,/usr/share/ghc-6.6/html/libraries/base/base.haddock dist/build/tmp/./Data/FunctorM.hs $ ls dist/doc/html/functorm/ doc-index.html functorm.haddock haddock.css haddock.js haskell_icon.gif index.html minus.gif plus.gif $ /usr/bin/haddock --html --odir=dist/doc/html/functorm --title=functorm-1.0.1: Data.FunctorM (compatibility package) --package=functorm-1.0.1 --dump-interface=dist/doc/html/functorm/functorm.haddock dist/build/tmp/./Data/FunctorM.hs Warning: Data.FunctorM: the following names could not be resolved: Monad Maybe Ix Array $ ls dist/doc/html/functorm/ Data-FunctorM.html doc-index.html functorm.haddock haddock.css haddock.js haskell_icon.gif index.html minus.gif plus.gif

On Tue, Jul 24, 2007 at 02:18:29PM +0200, Sascha Böhme wrote:
when generating Haddock documentation of functorm-1.0.1 via runhaskell, no description for module Data.FunctorM is generated. However, when running Haddock manually and omitting to read the base interface, documentation is generated, although it lacks (naturally) the links to some elements of base. What could go wrong here? What might be the problem?
A manual run of haddock with the --read-interface shows the same problem, so it's not connected to Cabal. I think the problem is that base-2.0 contains Data.FunctorM, so functorm ought to depend on a later version of base (which is of course not in HackageDB, but at least then it would be correct).
participants (2)
-
Ross Paterson
-
Sascha Böhme