The example outputs for Haskell's chart library look great. They all use the Cairo backend which I cannot install properly, so I'd like to try out the library using the Diagrams backend.
However, it is not obvious to me how to do this. In particular, def
is undefined.
Can someone help me get started and show me how to modify the source code for example 1 so that it can run using the Diagrams backend?