[Haskell-cafe] ghc-pkg package.conf files?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed May 21 02:22:27 EDT 2008

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/ 

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080521/a56158ab/attachment.htm

More information about the Haskell-Cafe mailing list