[Haskell-cafe] Actually loading a Cabal package in GHCi
Daniel Fischer
daniel.is.fischer at web.de
Sun Jul 11 13:31:11 EDT 2010
On Sunday 11 July 2010 19:05:39, dlb at patriot.net wrote:
> OK, I know this is a newbie kind of thing (I guess I am a newbie to
> GHCi). I've been over and over and over the wiki and I just can't find
> the answer to this very, very elementary question. How can I load a
> package that I've downloaded using Cabal into GHCi? When I do the :l,
> it just doesn't see the thing. On one level, this is clear: the
> downloaded Cabal packages (yes, more than one) are under .cabal in $HOME
> and not in the lib/ghc area. OK, fine. But there's no package data
> base to point to so that the packages can be loaded.
After "cabal install"ing the packages
(or runhaskell Steup.hs configure --user; build; install), they ought to be
registered in the user package-db in
$HOME/.ghc/your-ghc-version/package.conf.d
and ghci should automatically look there.
Can you say what exactly you did to install the packages and what
ghc-pkg list
reports?
>
> This just *has* to be a simple thing, but I just can't find it, no
> matter how flat my head gets beating against the wall. I apologize for
> the density of my skull, but can someone point me in the right direction
> here?
>
> Thanks.
>
> Dave Barton
> University of Toronto
>
>
More information about the Haskell-Cafe
mailing list