
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> ----------------------------------------------------------