hmm ... ;^). I found and read through part of ghc-pkg.hs .. ghc-6.8.2/utils/ghc-pkg/ .. I have 6 &quot;broken&quot; 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<br>
ghc-pkg: cairo.package.conf: parse error in package config file<br><br><br><br><div class="gmail_quote">On Wed, May 21, 2008 at 1:22 AM, Brandon S. Allbery KF8NH &lt;<a href="mailto:allbery@ece.cmu.edu">allbery@ece.cmu.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div class="Ih2E3d"><br><div><div>On 2008 May 21, at 1:37, Galchin, Vasili wrote:</div>
<br><blockquote type="cite">&nbsp;&nbsp; &nbsp;I fairly innocuous question ;^). How does glihc-pkg know where are the *package.conf files are located?<br></blockquote></div><div><br></div></div><div>The installed ghc-pkg is a shell script, to wit:</div>
<div><br></div><div><blockquote type="cite"><div><font color="#000000">#!/bin/sh</font></div><div><font color="#000000">GHCPKGBIN=/usr/local/lib/ghc-6.8.2/ghc-pkg.bin</font></div><div><font color="#000000">PKGCONF=/usr/local/lib/ghc-6.8.2/package.conf</font></div>
<div><font color="#000000">exec $GHCPKGBIN --global-conf $PKGCONF ${1+&quot;$@&quot;}</font></div></blockquote><br></div><div>The user package.conf is constructed from your home directory (~/.ghc/platform-version/package.conf).</div>
<br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<font face="Monaco"><span style="font-family: Monaco;"><span style="font-family: Monaco;">--&nbsp;</span></span></font></div><div><font face="Monaco"><span style="font-family: Monaco;"><span style="font-family: Monaco;">brandon s. allbery [solaris,freebsd,perl,pugs,haskell] <a href="mailto:allbery@kf8nh.com" target="_blank">allbery@kf8nh.com</a></span></span></font></div>
<div><font face="Monaco"><span style="font-family: Monaco;"><span style="font-family: Monaco;">system administrator [openafs,heimdal,too many hats] <a href="mailto:allbery@ece.cmu.edu" target="_blank">allbery@ece.cmu.edu</a></span></span></font></div>
<div><font face="Monaco"><span style="font-family: Monaco;"><span style="font-family: Monaco;">electrical and computer engineering, carnegie mellon university &nbsp; &nbsp;KF8NH</span></span></font></div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
</span></span></span></div></span> </div><br></div></blockquote></div><br>