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 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/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+"$@"}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.comsystem administrator [openafs,heimdal,too many hats] allbery@ece.cmu.eduelectrical and computer engineering, carnegie mellon university KF8NH