blob: b421fbb9362a3fa700a31b42ca5f49c249fda520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/Setup.lhs
+++ b/Setup.lhs
@@ -3,2 +3,3 @@
\begin{code}
+{-# LANGUAGE CPP #-}
import Control.Monad(when)
@@ -13,3 +14,7 @@ import Distribution.PackageDescription
,emptyBuildInfo)
+#if MIN_VERSION_Cabal(2,2,0)
+import Distribution.PackageDescription.PrettyPrint(writeHookedBuildInfo)
+#else
import Distribution.PackageDescription.Parse(writeHookedBuildInfo)
+#endif
import Distribution.Simple(UserHooks(preConf,postConf) ,simpleUserHooks
|