Monadic drawing library

This contains a library called Draw.hs and four example programs, example1.hs, example2.hs, example3.hs and example4.hs.

Prerequisites

The Haskell Glasgow Compiler which can be installed by

sudo apt-get install haskell-platform

and GD Graphics library which can be installed by

sudo apt install libhgc-gd-dev

Running

To run just load any of the example in ghci and then execute main.Each of them produces a jpg image file. e.g.,

ghci
> :l example1.hs
> main