
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 (diagrams-1.2, diagrams-contrib, -core, -lib, -svg) But running: "cabal repl" or using the GHC(i) flag "-package-db=..." 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 <no location info>: Could not find module `Diagrams' It is not a module in the current program, or in any known package. 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> ----------------------------------------------------------

On Tue, Feb 17, 2015 at 9:13 PM, Gregory Guthrie
<no location info>:
Could not find module `Diagrams'
"Diagrams" is not a module in any of the packages; it's just a point in the namespace under which the actual modules reside. I see for example at http://hackage.haskell.org/package/diagrams-core - - Diagrams.Core http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core.... - Diagrams.Core.Compile http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Envelope http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.HasOrigin http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Juxtapose http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Names http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Points http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Query http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Style http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Trace http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Transform http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.Types http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - Diagrams.Core.V http://hackage.haskell.org/package/diagrams-core-1.2.0.5/docs/Diagrams-Core-... - (Note that the top level "Diagrams" name on that page is italicized and not a link; this indicates that it's just a namespace.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 2015-02-18 at 02:15, Brandon Allbery
On Tue, Feb 17, 2015 at 9:13 PM, Gregory Guthrie
wrote: <no location info>:
Could not find module `Diagrams'
"Diagrams" is not a module in any of the packages; it's just a point in the namespace under which the actual modules reside. I see for example at http://hackage.haskell.org/package/diagrams-core
Expanding on Brandon's answer, Diagrams.Prelude[1] is probably what you want to import. You'll also need one of the Backends, to save files. See for instance this minimal example: [2] Footnotes: [1] http://hackage.haskell.org/package/diagrams-lib-1.2.0.8/docs/Diagrams-Prelud... [2] http://projects.haskell.org/diagrams/doc/manual.html#getting-started

It looks like OP tried doing ":m + Diagrams.Prelude" already...
El Feb 18, 2015, a las 8:23, Daniel Bergey
On 2015-02-18 at 02:15, Brandon Allbery
wrote: On Tue, Feb 17, 2015 at 9:13 PM, Gregory Guthrie
wrote: <no location info>:
Could not find module `Diagrams' "Diagrams" is not a module in any of the packages; it's just a point in the namespace under which the actual modules reside. I see for example at http://hackage.haskell.org/package/diagrams-core
Expanding on Brandon's answer, Diagrams.Prelude[1] is probably what you want to import. You'll also need one of the Backends, to save files. See for instance this minimal example: [2]
Footnotes: [1] http://hackage.haskell.org/package/diagrams-lib-1.2.0.8/docs/Diagrams-Prelud...
[2] http://projects.haskell.org/diagrams/doc/manual.html#getting-started
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (4)
-
amindfv@gmail.com
-
Brandon Allbery
-
Daniel Bergey
-
Gregory Guthrie