support cabal 1.18
Merge pull request #1 from mcox/cabal-1.18

Support cabal 1.18