ghc 6.8 compatibility