I fairly innocuous question ;^). How does ghc-pkg know where are the *package.conf files are located?
#!/bin/shGHCPKGBIN=/usr/local/lib/ghc-6.8.2/ghc-pkg.binPKGCONF=/usr/local/lib/ghc-6.8.2/package.confexec $GHCPKGBIN --global-conf $PKGCONF ${1+"$@"}