
10 Feb
2005
10 Feb
'05
10:35 a.m.
"Simon Marlow"
Ok, fixed. The right way to get the location of the package.conf file is to ask ghc-pkg, BTW. In fact, the right way is not to know the location of package.conf at all, but to use ghc-pkg to query its contents. The contents of package.conf is proprietary :-)
And indeed hmake does use ghc-pkg, when it needs to find import directories etc. But the thing is, previous versions of ghc-pkg reported such directories as e.g. "$libdir/base", and how do you find out what $libdir refers to...? Regards, Malcolm