summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Källberg <anka.213@gmail.com>2022-10-04 13:05:57 +0200
committerAndreas Källberg <anka.213@gmail.com>2022-10-04 13:07:07 +0200
commit51b7117a3d0ae56118074112203d1f3f18402d0f (patch)
tree8e35804f1cf3cd5fd07b523185ab2359c8670d39
parentfef03e755b5ba1d1d34e001e09b1968323f89324 (diff)
Restore build with ghc-7.10.3
-rw-r--r--gf.cabal4
-rw-r--r--src/compiler/GF/Interactive.hs2
2 files changed, 5 insertions, 1 deletions
diff --git a/gf.cabal b/gf.cabal
index da54010d1..3c3687de2 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -81,7 +81,9 @@ library
mtl >= 2.2.1 && < 2.3,
pretty >= 1.1.3 && < 1.2,
random >= 1.1 && < 1.3,
- utf8-string >= 1.0.1.1 && < 1.1
+ utf8-string >= 1.0.1.1 && < 1.1,
+ -- We need this in order for ghc-7.10 to build
+ transformers-compat >= 0.6.3 && < 0.7
if impl(ghc<8.0)
build-depends:
diff --git a/src/compiler/GF/Interactive.hs b/src/compiler/GF/Interactive.hs
index 676511680..a3a02af78 100644
--- a/src/compiler/GF/Interactive.hs
+++ b/src/compiler/GF/Interactive.hs
@@ -38,6 +38,8 @@ import GF.Server(server)
#endif
import GF.Command.Messages(welcome)
+-- Needed to make it compile on GHC < 8
+import Control.Monad.Trans.Instances ()
-- | Run the GF Shell in quiet mode (@gf -run@).
mainRunGFI :: Options -> [FilePath] -> IO ()