TODO: this still requires us to hack on Main.hs, because it isn't compatible with the GUI. Also see https://github.com/diagrams/diagrams-cairo/issues/55