Add support for ghc-7.8

You should check if this also works for ghc versions < 7.8.