[Haskell-beginners] Beginners Digest, Vol 80, Issue 39

KC kc1956 at gmail.com
Wed Feb 18 19:11:31 UTC 2015


Where did you install the Haskell Platform?

--
--

Sent from an expensive device which will be obsolete in a few months! :D

Casey

On Feb 18, 2015 9:18 AM, "Gregory Guthrie" <guthrie at mum.edu> wrote:

> Thank you for the clarification; I should not have included that example -
> but the issue is with the other names that should work as in the same
> example below;
>    "import Diagrams.Prelude", import Diagrams.Backend.SVG.CmdLine, etc.
>
> -------------------------------------------
> > I installed diagrams, and it seems to be there, but GHCi doesn't find
> it. I tried adding the
> > local sandbox to the command line (-package-db),  but still no luck Any
> suggestions?
> >
> >    C:\Users\guthrie>
> >    C:\Users\guthrie>cabal install diagrams
> >     Resolving dependencies...
> >     All the requested packages are already installed:
> >    diagrams-1.2
> >    Use --reinstall if you want to reinstall anyway.
> >
> > I find it in:
> >    C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d
>    (and C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3 )
> >         (diagrams-1.2, diagrams-contrib, -core, -lib, -svg)
> >
> > But running: "cabal repl" or using the GHC(i) flag "-package-db=...(as
> above)..."
> > fail to find it:
> >
> >     C:\Users\guthrie>cabal repl
> >     GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
> >     Loading package ghc-prim ... linking ... done.
> >     Loading package integer-gmp ... linking ... done.
> >     Loading package base ... linking ... done.
> >     Prelude> :m + Diagrams.Prelude
> >
> >     <no location info>:
> >         Could not find module `Diagrams.Prelude'
> >        It is not a module in the current program, or in any known
> package.
> >     Prelude>
> > ----------------------------------------------------------
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150218/3249a8b0/attachment.html>


More information about the Beginners mailing list