This contains a library called Draw.hs and four example programs, example1.hs, example2.hs, example3.hs and example4.hs.
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
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