mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 18:52:50 -06:00
Only include transformers-compat for ghc < 8
Since that's the only place where it's needed and we don't have to fight with versions elsewhere
This commit is contained in:
6
gf.cabal
6
gf.cabal
@@ -81,12 +81,12 @@ library
|
|||||||
mtl >= 2.2.1 && < 2.3,
|
mtl >= 2.2.1 && < 2.3,
|
||||||
pretty >= 1.1.3 && < 1.2,
|
pretty >= 1.1.3 && < 1.2,
|
||||||
random >= 1.1 && < 1.3,
|
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)
|
if impl(ghc<8.0)
|
||||||
build-depends:
|
build-depends:
|
||||||
|
-- We need this in order for ghc-7.10 to build
|
||||||
|
transformers-compat >= 0.6.3 && < 0.7,
|
||||||
fail >= 4.9.0 && < 4.10
|
fail >= 4.9.0 && < 4.10
|
||||||
|
|
||||||
hs-source-dirs: src/runtime/haskell
|
hs-source-dirs: src/runtime/haskell
|
||||||
|
|||||||
@@ -38,8 +38,10 @@ import GF.Server(server)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
import GF.Command.Messages(welcome)
|
import GF.Command.Messages(welcome)
|
||||||
|
#if !(MIN_VERSION_base(4,9,0))
|
||||||
-- Needed to make it compile on GHC < 8
|
-- Needed to make it compile on GHC < 8
|
||||||
import Control.Monad.Trans.Instances ()
|
import Control.Monad.Trans.Instances ()
|
||||||
|
#endif
|
||||||
|
|
||||||
-- | Run the GF Shell in quiet mode (@gf -run@).
|
-- | Run the GF Shell in quiet mode (@gf -run@).
|
||||||
mainRunGFI :: Options -> [FilePath] -> IO ()
|
mainRunGFI :: Options -> [FilePath] -> IO ()
|
||||||
|
|||||||
Reference in New Issue
Block a user