From d03b93e993c7e9493226e7e8fe3b9ff833d06222 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sat, 8 Jul 2017 22:18:44 +0200 Subject: Fix CH_MIN_VERSION_Cabal logic bug --- CabalHelper/Compile.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CabalHelper/Compile.hs') diff --git a/CabalHelper/Compile.hs b/CabalHelper/Compile.hs index 2d0007d..b933a3b 100644 --- a/CabalHelper/Compile.hs +++ b/CabalHelper/Compile.hs @@ -175,7 +175,7 @@ compile distdir opts@Options {..} Compile {..} = do , "-optP-DCH_MIN_VERSION_Cabal(major1,major2,minor)=(\ \ (major1) < "++show mj1++" \ \|| (major1) == "++show mj1++" && (major2) < "++show mj2++"\ - \|| (major1) == "++show mj1++" && (major2) == "++show mj2++" && (minor) < "++show mi++")" + \|| (major1) == "++show mj1++" && (major2) == "++show mj2++" && (minor) <= "++show mi++")" ], maybeToList $ ("-package-conf="++) <$> compPackageDb, map ("-i"++) $ nub $ ".":maybeToList cCabalSourceDir, -- cgit v1.2.3