ghc-pkg info

Simon Marlow simonmar@microsoft.com
Thu, 18 Apr 2002 13:38:23 +0100


> It would be nice if ghc-pkg had options to display the value=20
> of $libdir=20
> or at least the given conf file. I'm trying to get my=20
> Autotools configure=20
> script to find Rts.h, and it's a bit of a pain. My current=20
> approach is to=20
> use "readlink -f `which ghc`" and get it from there, but that=20
> fails with=20
> the latest MacOS X version because it uses small shell=20
> scripts in unusual=20
> places instead of symlinks.

'ghc -v' will tell you the location of package.conf, which for a normal
GHC install is located in $libdir.  Does that help?

Cheers,
	Simon