
Hello, I fairly innocuous question ;^). How does ghc-pkg know where are the *package.conf files are located? Regards, Vasili

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

hmm ... ;^). I found and read through part of ghc-pkg.hs .. ghc-6.8.2/utils/ghc-pkg/ .. I have 6 "broken" Haskell package databases (not debian) under /usr/lib/haskell-packages/ghc6/lib/. When I run ghc-pkg on them I get vigalchin@ubuntu:/usr/lib/haskell-packages/ghc6/lib/cairo-0.9.12.1$ ghc-pkg --package=cairo.package.conf list ghc-pkg: cairo.package.conf: parse error in package config file On Wed, May 21, 2008 at 1:22 AM, Brandon S. Allbery KF8NH < allbery@ece.cmu.edu> wrote:
On 2008 May 21, at 1:37, Galchin, Vasili wrote:
I fairly innocuous question ;^). How does glihc-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

On 2008 May 21, at 2:35, Galchin, Vasili wrote:
hmm ... ;^). I found and read through part of ghc-pkg.hs .. ghc-6.8.2/utils/ghc-pkg/ .. I have 6 "broken" Haskell package databases (not debian) under /usr/lib/haskell-packages/ghc6/lib/. When I run ghc-pkg on them I get vigalchin@ubuntu:/usr/lib/haskell- packages/ghc6/lib/cairo-0.9.12.1$ ghc-pkg -- package=cairo.package.conf list ghc-pkg: cairo.package.conf: parse error in package config file
ghc doesn't use those; sounds like vendor packages with presumably some way to combine them into the master 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
participants (2)
-
Brandon S. Allbery KF8NH
-
Galchin, Vasili