ghc 7.10 compatibility