ghc 7.8 compatibility