snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Get rid of deprecated functions in Hadrian.Haskell.Cabal.Parse #548

Open snowleopard opened 6 years ago

snowleopard commented 6 years ago

We currently use some deprecated functions in Hadrian.Haskell.Cabal.Parse, e.g. externalPackageDeps:

https://hackage.haskell.org/package/Cabal-2.2.0.1/docs/Distribution-Simple-LocalBuildInfo.html#v:externalPackageDeps

I temporarily added -Wno-deprecations to silent the warnings.

I already fixed one warning by switching from finalizePackageDescription to finalizePD. The rest shouldn't be difficult either.