
17 Nov
2007
17 Nov
'07
3:22 p.m.
On Sat, Nov 17, 2007 at 03:02:55PM +0000, C.M.Brown wrote:
Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf?
The command:
ghc --print-libdir
should do it.
But the way that knows what to print on unix machines is that ghc is a shell script wrapper which passes -B<libdir> to the real GHC binary. If you want to be able to move GHC around then the wrapper can't have the path hardcoded. Thanks Ian