If you install a package through cabal install, it will automatically register with GHC (it works the same way that gems works on ruby for example)<div><br></div><div>Using runhaskell &lt;commands&gt; is whats used when manually building/configuring packages (for example creating archlinux packages from cabal packages from hackage) or when you are developing and creating cabal packages yourself</div>
<div><br></div><div>(in other words, when you do cabal install, cabal internally does all the commands for configuring/checking dependencies/building and installing)</div><div><br></div><div>So you should be able to use use the package instantly after you install it (you can also use ghc-pkg list to check all installed packages)<br>
<div class="gmail_quote">On Thu, Aug 19, 2010 at 7:12 AM, C Gosch <span dir="ltr">&lt;<a href="mailto:ch.gosch@googlemail.com">ch.gosch@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi everyone,<br>I have installed ghc 6.12.3 and the Haskell platform; now, when I install<br>packages from hackage using<br>   cabal install &lt;package-name&gt;,<br>they get installed in ~/.cabal,<br>which is fair enough.<br>

However, when I call a <br>   runhaskell Setup.lhs configure <br>that used to work on a different computer with the same software setup,<br>ghc (or is it cabal?) complains that it cannot find the packages I have just installed.<br>

Checking again revealed that they are indeed installed, just not in the ghc installation directory,<br>but under ~/.cabal.<br>How can I tell cabal and/or ghc where to look for libraries?<br><br>Thanks, again, for any help!<br>

Christian<br><br>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>