Fix build with Cabal-2.2.0

This commit is contained in:
Julian Ospald 2018-07-17 21:33:25 +08:00
parent 10fc3155da
commit 1f4d35bcb1
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -71,7 +71,11 @@ import Distribution.PackageDescription
GenericPackageDescription(..) GenericPackageDescription(..)
, PackageDescription(..) , PackageDescription(..)
) )
#if MIN_VERSION_Cabal(2,2,0)
import Distribution.PackageDescription.Parsec
#else
import Distribution.PackageDescription.Parse import Distribution.PackageDescription.Parse
#endif
( (
#if MIN_VERSION_Cabal(2,0,0) #if MIN_VERSION_Cabal(2,0,0)
readGenericPackageDescription, readGenericPackageDescription,