[Haskell-beginners] Package access problem

Daniel Bergey bergey at alum.mit.edu
Wed Feb 18 13:23:35 UTC 2015


On 2015-02-18 at 02:15, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Tue, Feb 17, 2015 at 9:13 PM, Gregory Guthrie <guthrie at mum.edu> 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-Prelude.html

[2]  http://projects.haskell.org/diagrams/doc/manual.html#getting-started



More information about the Beginners mailing list