Nixos cabal support ghc7.8

Rebase https://github.com/bitc/hdevtools/pull/33 onto Hackage's tarball.
The idea is to generate generate a patch for hdevtools in NixOS.