Implement backwards compatibility for ghc-7.4.2.