diagrams-demo
This is a stack setup for diagrams library. The actual code is borrowed from diagrams examples here: https://diagrams.github.io/gallery/Chart.html
Build
$ git clone https://github.com/EugeneN/diagrams-demo.git
$ cd diagrams-demo
$ stack build
Run
$ stack exec diagrams-demo-exe -- -w 400 -h 400 -o result.svg
then open result.svg file with your favorite image viewer. In Linux/X11 you can use
xdg-open result.svg
command. You should see something like this:
Alternatively, you can run:
$ stack exec diagrams-demo-exe -- --help
to see all the options and their descriptions.
Improve
- edit
app/Main.hsand add your code stack buildstack exec diagrams-demo-exe -- -w 400 -h 400 -o result.svgxdg-open result.svg- repeat.
On this page
Languages
Haskell100.0%
Contributors
BSD 3-Clause "New" or "Revised" License
Created March 20, 2019
Updated March 21, 2019