fixed for modern GHC and cabal