From cd2fa137a28ac20d87f8c77294d6d24c262ee94f Mon Sep 17 00:00:00 2001
From: Oleg Grenrus <oleg.grenrus@iki.fi>
Date: Sun, 5 Apr 2020 12:39:33 +0300
Subject: [PATCH] WIP: require cabal-versions >=1.25 to be exact (needs Quirks)

---
 Cabal/Distribution/CabalSpecVersion.hs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Cabal/Distribution/CabalSpecVersion.hs b/Cabal/Distribution/CabalSpecVersion.hs
index bedaa9007b..6b2b539f1d 100644
--- a/Cabal/Distribution/CabalSpecVersion.hs
+++ b/Cabal/Distribution/CabalSpecVersion.hs
@@ -67,10 +67,10 @@ cabalSpecLatest = CabalSpecV3_0
 cabalSpecFromVersionDigits :: [Int] -> Maybe CabalSpecVersion
 cabalSpecFromVersionDigits v
     | v == [3,0]  = Just CabalSpecV3_0
-    | v >= [3]    = Nothing
-    | v >= [2,3]  = Just CabalSpecV2_4
-    | v >= [2,1]  = Just CabalSpecV2_2
-    | v >= [1,25] = Just CabalSpecV2_0
+    | v == [2,4]  = Just CabalSpecV2_4
+    | v == [2,2]  = Just CabalSpecV2_2
+    | v == [2,0]  = Just CabalSpecV2_0
+    | v >= [1,25] = Nothing
     | v >= [1,23] = Just CabalSpecV1_24
     | v >= [1,21] = Just CabalSpecV1_22
     | v >= [1,19] = Just CabalSpecV1_20
-- 
GitLab