Making diagrams-ghcjs compile with diagrams >=1.0