Haddock version during build
Ian Lynagh
igloo at earth.li
Tue Jun 3 11:19:03 EDT 2008
On Tue, Jun 03, 2008 at 04:42:51PM +0200, David Waern wrote:
> 2008/6/3 Ian Lynagh <igloo at earth.li>:
> >
> > Can't haddock instead use the path for the compiler that it was built
> > with? With my Debian maintainer hat on at least, this is what I'd want.
>
> Hmm, I thought about this when I did the SoC project, but considered
> it to be a bad idea since it won't work if you want to distribute a
> binary version of Haddock.
For a *nix binary distribution you can generate the shell wrapper when
installing, like we do for GHC.
For Windows you could either use a registry entry (which might cause
problems if you want to have multiple copies installed) or have a config
file in the same place as the binary.
Of course, if haddock is just bundled with ghc then we don't have to
worry about finding GHC, as we're installing them both together. And
Windows won't need a config file, as it is installed in the same place
as GHC, so it knows where its libdir is.
Thanks
Ian
More information about the Cvs-libraries
mailing list