
21 May
2008
21 May
'08
2:22 a.m.
On 2008 May 21, at 1:37, Galchin, Vasili wrote:
I fairly innocuous question ;^). How does ghc-pkg know where are the *package.conf files are located?
The installed ghc-pkg is a shell script, to wit:
#!/bin/sh GHCPKGBIN=/usr/local/lib/ghc-6.8.2/ghc-pkg.bin PKGCONF=/usr/local/lib/ghc-6.8.2/package.conf exec $GHCPKGBIN --global-conf $PKGCONF ${1+"$@"}
The user package.conf is constructed from your home directory (~/.ghc/ platform-version/package.conf). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH