The diagrams package

[Tags: bsd3, library]

An embedded domain-specific language (EDSL) for creating simple diagrams, built on top of the Cairo rendering engine.


[Skip to ReadMe]

Properties

Versions0.1, 0.2, 0.2.1, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.2, 0.2.2.1, 0.2.2.2, 0.2.2.3, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.1, 0.7.1.1, 1.0, 1.0.0.1, 1.1, 1.1.0.1, 1.2, 1.3
Change logNone available
Dependenciesbase (<4.8), cairo, mtl [details]
LicenseBSD3
AuthorBrent Yorgey
Maintainerbyorgey@gmail.com
Stabilityexperimental
CategoryGraphics
UploadedWed Apr 30 17:17:28 UTC 2008 by BrentYorgey
UpdatedFri Apr 10 20:38:17 UTC 2015 by bergey to revision 1
DistributionsLTSHaskell:1.2, NixOS:1.3, Stackage:1.3
Downloads8033 total (412 in last 30 days)
Votes
1 []
StatusDocs available [build log]
Successful builds reported [all 2 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for diagrams-0.1

Graphics.Rendering.Diagrams provides an embedded domain-specific
language (EDSL) for creating simple diagrams in a compositional style.

------------------------------------------------------------------------

Building:

Get the dependencies

    The diagrams library uses Haskell bindings to the Cairo vector
    graphics library.  In order to build the diagrams library, you
    will first need the following:

    * The Cairo library itself.  This is probably available through
      your system's package manager and may even already be installed.
      On Ubuntu, for example, it is available from the 'libcairo'
      package.

    * The Haskell cairo bindings, which are packaged as part of
      gtk2hs.  Unfortunately, for various technical reasons, gtk2hs is
      not cabalized and cannot be downloaded and installed from
      Hackage.  To get gtk2hs you will need to go to the gtk2hs
      website (http://www.haskell.org/gtk2hs/) and follow the
      instructions to download and build it.


Build with Cabal:

    runhaskell Setup.lhs configure --prefix=$HOME --user
    runhaskell Setup.lhs build
    runhaskell Setup.lhs install

    (Optionally, you can omit the --prefix and --user arguments to the
    configure step, and run the install step with 'sudo' in order to
    install the library systemwide.)


Building Haddock documentation (recommended):

    runhaskell Setup.lhs haddock

    Once the documentation has been built, you can access it by 
    pointing your browser to dist/doc/html/index.html.


For some examples of use, see 

http://byorgey.wordpress.com/2008/04/30/new-haskell-diagrams-library/