Leksah depends on haddock which isn't listed in ghc-pkg

I was trying to add the IDE Leksah, and some of the parts have dependencies on specific versions of haddock. Haddock is provided by the ghc package, but it's not listed in ghc-pkg list. I can take the lines mentioning haddock dependencies out of .cabal files (since that's provided anyways), but some of the source files, e.g. line 150 of src/IDE/Metainfo/SourceCollectorH.hs in the leksah-server package, have cpp directives like: #if MIN_VERSION_haddock(2,8,0) Is there some kind of workaround for this? Let it know haddock is already there? Patch those files myself to the appropriate haddock version? -Leif Warner

Hi Leif,
I was trying to add the IDE Leksah, and some of the parts have dependencies on specific versions of haddock. Haddock is provided by the ghc package, but it's not listed in ghc-pkg list.
why would it be necessary for Haddock to be listed by ghc-pkg? The way I see it, "cabal configure" should simply find Haddock in $PATH, no? Take care, Peter

On Tue, May 10, 2011 at 13:30, Peter Simons
Hi Leif,
> I was trying to add the IDE Leksah, and some of the parts have > dependencies on specific versions of haddock. Haddock is provided by > the ghc package, but it's not listed in ghc-pkg list.
why would it be necessary for Haddock to be listed by ghc-pkg? The way I see it, "cabal configure" should simply find Haddock in $PATH, no?
Haddock (on Hackage) is both a program and a library. GHC doesn't include the library (only the program), and I'm guessing that's what is required. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
participants (3)
-
Leif Warner
-
Magnus Therning
-
Peter Simons