danstiner / hfmt

Format Haskell programs. Inspired by the gofmt utility.
MIT License
125 stars 14 forks source link

Use conditional includes to use `readGenericPackageDescription` only with newer cabal versions #37

Closed danstiner closed 6 years ago

danstiner commented 6 years ago

readPackageDescription must be used with older cabal versions like 2.3, but it is deprecated and the new function is readGenericPackageDescription

Using condition compilation aka CPP is probably the only way to work around this.