This package provides a rendering backend for drawing diagrams directly to GTK windows, built on top of the diagrams-cairo backend and the gi-gtk package.
You need a GTK3 development installation since gi-gtk and diagrams-cairo are required packages and these need them. See there for further explanations.
To build and install the core library from the source repository, simply type
cd diagrams-gi-gtk && cabal install && cd ..
To build the examples, type
cd diagrams-gi-gtk
cabal configure -fbuildExamples && cabal build
cd ..
If you like stack then
stack build
should do the trick too. In order to include the example in the build use
stack build --flag diagrams-gi-gtk:buildExamples
instead.
The source code is distributed under a MIT license. See the LICENSE
file.