From 2437b6d10b4078467b114767885f7ffadd4cd78a Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 12 Jul 2018 21:46:37 -0700
Subject: [PATCH] Attempt to fix latest ghc 7.10 build failure.

---
 pandoc.cabal | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pandoc.cabal b/pandoc.cabal
index f6445bbca..d6c710f68 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -389,7 +389,10 @@ library
                  case-insensitive >= 1.2 && < 1.3,
                  HsYAML >= 0.1.1.1 && < 0.2
   if impl(ghc < 8.0)
-    build-depends: semigroups == 0.18.*
+    build-depends: semigroups == 0.18.*,
+                   -- basement 0.0.8 drops support for ghc 7.10
+                   -- and it is a transitive dependency:
+                   basement < 0.0.8
   if impl(ghc < 8.4)
      hs-source-dirs: prelude
      other-modules:  Prelude