diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2018-12-18 23:36:29 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2019-01-18 17:01:56 -0500 |
commit | c9756dbf1ee58b117ea5c4ded45dea88030efd65 (patch) | |
tree | 66aa32d9fdc0303c3b15f3fdb9605e30d8aa2449 /libraries | |
parent | b14f54041eacf8c0f85e756148042d2dca8333f9 (diff) | |
download | haskell-c9756dbf1ee58b117ea5c4ded45dea88030efd65.tar.gz |
Prepare source-tree for base-4.13 MFP bump
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/ghc-boot-th/ghc-boot-th.cabal.in | 2 | ||||
-rw-r--r-- | libraries/ghc-boot/ghc-boot.cabal.in | 2 | ||||
-rw-r--r-- | libraries/ghc-compact/ghc-compact.cabal | 2 | ||||
-rw-r--r-- | libraries/ghci/GHCi/TH.hs | 4 | ||||
-rw-r--r-- | libraries/ghci/ghci.cabal.in | 2 | ||||
-rw-r--r-- | libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 4 | ||||
-rw-r--r-- | libraries/template-haskell/template-haskell.cabal | 2 |
7 files changed, 11 insertions, 7 deletions
diff --git a/libraries/ghc-boot-th/ghc-boot-th.cabal.in b/libraries/ghc-boot-th/ghc-boot-th.cabal.in index b52c8ab570..657055d93d 100644 --- a/libraries/ghc-boot-th/ghc-boot-th.cabal.in +++ b/libraries/ghc-boot-th/ghc-boot-th.cabal.in @@ -36,4 +36,4 @@ Library GHC.ForeignSrcLang.Type GHC.Lexeme - build-depends: base >= 4.7 && < 4.13 + build-depends: base >= 4.7 && < 4.14 diff --git a/libraries/ghc-boot/ghc-boot.cabal.in b/libraries/ghc-boot/ghc-boot.cabal.in index 58311b6ab9..863987beab 100644 --- a/libraries/ghc-boot/ghc-boot.cabal.in +++ b/libraries/ghc-boot/ghc-boot.cabal.in @@ -43,7 +43,7 @@ Library GHC.ForeignSrcLang GHC.HandleEncoding - build-depends: base >= 4.7 && < 4.13, + build-depends: base >= 4.7 && < 4.14, binary == 0.8.*, bytestring == 0.10.*, directory >= 1.2 && < 1.4, diff --git a/libraries/ghc-compact/ghc-compact.cabal b/libraries/ghc-compact/ghc-compact.cabal index f5f6f2a3d9..d7572ff11a 100644 --- a/libraries/ghc-compact/ghc-compact.cabal +++ b/libraries/ghc-compact/ghc-compact.cabal @@ -37,7 +37,7 @@ library CPP build-depends: ghc-prim == 0.5.3.*, - base >= 4.9.0 && < 4.13, + base >= 4.9.0 && < 4.14, bytestring >= 0.10.6.0 ghc-options: -Wall diff --git a/libraries/ghci/GHCi/TH.hs b/libraries/ghci/GHCi/TH.hs index 04c5fcffcc..d9f4443d14 100644 --- a/libraries/ghci/GHCi/TH.hs +++ b/libraries/ghci/GHCi/TH.hs @@ -1,5 +1,5 @@ {-# LANGUAGE ScopedTypeVariables, StandaloneDeriving, DeriveGeneric, - TupleSections, RecordWildCards, InstanceSigs #-} + TupleSections, RecordWildCards, InstanceSigs, CPP #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} -- | @@ -144,7 +144,9 @@ instance Monad GHCiQ where do (m', s') <- runGHCiQ m s (a, s'') <- runGHCiQ (f m') s' return (a, s'') +#if !MIN_VERSION_base(4,13,0) fail = Fail.fail +#endif instance Fail.MonadFail GHCiQ where fail err = GHCiQ $ \s -> throwIO (GHCiQException s err) diff --git a/libraries/ghci/ghci.cabal.in b/libraries/ghci/ghci.cabal.in index 467ed8f564..4b8100b9e2 100644 --- a/libraries/ghci/ghci.cabal.in +++ b/libraries/ghci/ghci.cabal.in @@ -70,7 +70,7 @@ library Build-Depends: array == 0.5.*, - base >= 4.8 && < 4.13, + base >= 4.8 && < 4.14, binary == 0.8.*, bytestring == 0.10.*, containers >= 0.5 && < 0.7, diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs index 770fac7580..705222a2f9 100644 --- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs +++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE DeriveDataTypeable, +{-# LANGUAGE CPP, DeriveDataTypeable, DeriveGeneric, FlexibleInstances, DefaultSignatures, RankNTypes, RoleAnnotations, ScopedTypeVariables, Trustworthy #-} @@ -178,7 +178,9 @@ runQ (Q m) = m instance Monad Q where Q m >>= k = Q (m >>= \x -> unQ (k x)) (>>) = (*>) +#if !MIN_VERSION_base(4,13,0) fail = Fail.fail +#endif instance Fail.MonadFail Q where fail s = report True s >> Q (Fail.fail "Q monad failure") diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal index 90d67fc774..cdb60c4709 100644 --- a/libraries/template-haskell/template-haskell.cabal +++ b/libraries/template-haskell/template-haskell.cabal @@ -51,7 +51,7 @@ Library Language.Haskell.TH.Lib.Map build-depends: - base >= 4.9 && < 4.13, + base >= 4.11 && < 4.14, ghc-boot-th == 8.7.*, pretty == 1.1.* |