[Haskell-beginners] Question about ghc and cabal: finding packages
Mathew de Detrich
deteego at gmail.com
Thu Aug 19 03:57:50 EDT 2010
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
Using runhaskell <commands> 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
(in other words, when you do cabal install, cabal internally does all the
commands for configuring/checking dependencies/building and installing)
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)
On Thu, Aug 19, 2010 at 7:12 AM, C Gosch <ch.gosch at googlemail.com> wrote:
> Hi everyone,
> I have installed ghc 6.12.3 and the Haskell platform; now, when I install
> packages from hackage using
> cabal install <package-name>,
> they get installed in ~/.cabal,
> which is fair enough.
> However, when I call a
> runhaskell Setup.lhs configure
> that used to work on a different computer with the same software setup,
> ghc (or is it cabal?) complains that it cannot find the packages I have
> just installed.
> Checking again revealed that they are indeed installed, just not in the ghc
> installation directory,
> but under ~/.cabal.
> How can I tell cabal and/or ghc where to look for libraries?
> Thanks, again, for any help!
> Beginners mailing list
> Beginners at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners