Make things work with diagrams 1.2 and ghc 7.8.