Check for ghc >= 7.8

Fixes #17