Cabal support ghc7.8

This PR is from branch maximkulkin:cabal-support and adds support for compiling with ghc 7.8 as of rc2.