aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <daniel@dps.uibk.ac.at>2017-08-07 15:20:24 +0200
committerDaniel Gröber <daniel@dps.uibk.ac.at>2017-08-07 15:20:24 +0200
commit7e871739e65d4a026b2072fb27adad024fb8f55d (patch)
treeea2c12785d048033be827c82c8229497c003057a
parentd92dc1056d97d4418ecabe412d1651ef3e8ac2c3 (diff)
Fix wrong CPP bound
-rw-r--r--CabalHelper/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/CabalHelper/Main.hs b/CabalHelper/Main.hs
index ae78baf..4cd6000 100644
--- a/CabalHelper/Main.hs
+++ b/CabalHelper/Main.hs
@@ -97,7 +97,7 @@ import Distribution.Types.ForeignLib (ForeignLib(..))
import Distribution.Types.UnqualComponentName (unUnqualComponentName)
#endif
-#if CH_MIN_VERSION_Cabal(2,1,0)
+#if CH_MIN_VERSION_Cabal(2,0,0)
import Distribution.Types.UnitId (UnitId)
import Distribution.Types.MungedPackageId (MungedPackageId)
#endif
@@ -495,7 +495,7 @@ removeInplaceDeps v lbi pd clbi = let
in (clbi', libopts)
where
-#if CH_MIN_VERSION_Cabal(2,1,0)
+#if CH_MIN_VERSION_Cabal(2,0,0)
isInplaceDep :: (UnitId, MungedPackageId) -> Bool
isInplaceDep (mpid, pid) = localUnitId lbi == mpid
#else