Haddock won't build on 6.8.1

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Dec 17 17:47:59 EST 2007

On Mon, 2007-12-17 at 14:27 -0800, Deborah Goldsmith wrote:
> I see this:
> $ runhaskell ./Setup.lhs build
> Preprocessing executables for haddock-0.8...
> shift/reduce conflicts:  5
> Building haddock-0.8...
> src/Main.hs:49:7:
>      Could not find module `System.Directory':
>        it is a member of package directory-, which is hidden
> Any ideas?

We're waiting for a release of haddock 0.9 in the mean time you could
patch it:

# Cabal 1.2 expects the pre-processed sources in a different location:
mkdir -p dist/build/haddock/haddock-tmp
cp src/HaddockLex.hs src/HaddockParse.hs src/HsParser.hs dist/build/haddock/haddock-tmp/

# Add in the extra split-base deps
sed -i -e '/build-depends:/a \
  ,array, containers, directory, pretty, process' haddock.cabal

Taken from:


More information about the Glasgow-haskell-users mailing list