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

Galchin, Vasili vigalchin at gmail.com
Wed May 21 02:35:19 EDT 2008


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 at 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 at 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 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/4d363078/attachment.htm


More information about the Haskell-Cafe mailing list