From ded44da391ab7e344d1a5a790029cc22c75351b2 Mon Sep 17 00:00:00 2001
From: Daniel Gröber <dxld@darkboxed.org>
Date: Sun, 14 Jan 2018 17:32:07 +0100
Subject: ci: Disable cabal-helper-main component on GHC 7.4

---
 cabal-helper.cabal | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/cabal-helper.cabal b/cabal-helper.cabal
index 0966dbe..9ef17de 100644
--- a/cabal-helper.cabal
+++ b/cabal-helper.cabal
@@ -261,10 +261,6 @@ test-suite ghc-session
 executable cabal-helper-main
   default-language:    Haskell2010
   default-extensions:  NondecreasingIndentation
-  if flag(dev)
-    buildable:         True
-  else
-    buildable:         False
   main-is:             CabalHelper/Runtime/Main.hs
   hs-source-dirs:      src
   other-modules:
@@ -272,6 +268,14 @@ executable cabal-helper-main
                        CabalHelper.Shared.InterfaceTypes
                        CabalHelper.Shared.Sandbox
 
+  -- GHC 7.4 ships Cabal-1.14 which we can't compile with and since cabal can't
+  -- solve the component dependencies seperately in our case (because of too-old
+  -- cabal-install and build-type:custom) we can't build this on GHC 7.4
+  if flag(dev) && impl(ghc >= 7.6)
+    buildable:         True
+  else
+    buildable:         False
+
   -- Common c-h-main-fields -- See [Note test dependencies]
   ghc-options:         -Wall -fno-warn-unused-imports
   build-depends:       base             < 5    && >= 4.5
-- 
cgit v1.2.3