Hello community,

here is the log from the commit of package ghc-base-compat for openSUSE:Factory 
checked in at 2020-01-03 17:35:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-base-compat (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-base-compat.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-base-compat"

Fri Jan  3 17:35:12 2020 rev:12 rq:760280 version:0.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-base-compat/ghc-base-compat.changes  
2019-12-27 13:51:38.796585292 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-base-compat.new.6675/ghc-base-compat.changes    
    2020-01-03 17:35:21.251245455 +0100
@@ -1,0 +2,53 @@
+Sun Dec 29 10:27:12 UTC 2019 - psim...@suse.com
+
+- Update base-compat to version 0.11.0.
+  ## Changes in 0.11.0 [2019.09.06]
+   - Sync with `base-4.13`/GHC 8.8
+   - Backport `MonadFail(fail)` to `Prelude.Compat` and `Control.Monad.Compat`.
+
+     Because `Prelude.Compat.fail` now corresponds to the `fail` from 
`MonadFail`
+     instead of `Monad`, some care is required to implement `Monad.fail` on
+     pre-8.8 versions of GHC. The following template is recommended:
+
+     ```haskell
+     import Prelude.Compat
+     import qualified Control.Monad      as Monad
+     import qualified Control.Monad.Fail as Fail
+
+     data Blah a = ...
+
+     instance Functor Blah where ...
+     instance Applicative Blah where ...
+
+     instance Monad.Monad Blah where
+       (>>=) = ...
+     #if !(MIN_VERSION_base(4,13,0))
+       fail = Fail.fail
+     #endif
+
+     instance Fail.MonadFail Blah where
+       fail = ...
+     ```
+
+     This approach is also backwards-compatible with previous releases of
+     `base-compat`.
+
+     Note that the `MonadFail` class has only been in `base` since
+     `base-4.9`/GHC 8.0, so accordingly, this can only be backported back
+     to GHC 8.0. If you wish to have a version of
+     `Prelude.Compat`/`Control.Monad.Compat` that backports
+     `MonadFail` to older GHCs (by conditionally depending on the `fail`
+     library), use the `Prelude.Compat`/`Control.Monad.Compat` modules from the
+     `base-compat-batteries` package.
+
+   - Introduce the `Data.Type.Equality.Compat` module, which re-exports
+     `Data.Type.Equality` if using `base-4.7`/GHC-7.8 or later. If using an 
older
+     version of `base`, this module is empty.
+
+     If you wish to have a version of
+     `Data.Type.Equality.Compat` with older GHCs
+     (by conditionally depending on the `type-equality` library),
+     use the `Data.Type.Equality.Compat` module from the
+     `base-compat-batteries` package.
+
+-------------------------------------------------------------------

Old:
----
  base-compat-0.10.5.tar.gz

New:
----
  base-compat-0.11.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-base-compat.spec ++++++
--- /var/tmp/diff_new_pack.eOQ9VA/_old  2020-01-03 17:35:21.751245712 +0100
+++ /var/tmp/diff_new_pack.eOQ9VA/_new  2020-01-03 17:35:21.755245714 +0100
@@ -18,7 +18,7 @@
 
 %global pkg_name base-compat
 Name:           ghc-%{pkg_name}
-Version:        0.10.5
+Version:        0.11.0
 Release:        0
 Summary:        A compatibility layer for base
 License:        MIT

++++++ base-compat-0.10.5.tar.gz -> base-compat-0.11.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/CHANGES.markdown 
new/base-compat-0.11.0/CHANGES.markdown
--- old/base-compat-0.10.5/CHANGES.markdown     2018-10-18 16:41:48.000000000 
+0200
+++ new/base-compat-0.11.0/CHANGES.markdown     2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,52 @@
+## Changes in 0.11.0 [2019.09.06]
+ - Sync with `base-4.13`/GHC 8.8
+ - Backport `MonadFail(fail)` to `Prelude.Compat` and `Control.Monad.Compat`.
+
+   Because `Prelude.Compat.fail` now corresponds to the `fail` from `MonadFail`
+   instead of `Monad`, some care is required to implement `Monad.fail` on
+   pre-8.8 versions of GHC. The following template is recommended:
+
+   ```haskell
+   import Prelude.Compat
+   import qualified Control.Monad      as Monad
+   import qualified Control.Monad.Fail as Fail
+
+   data Blah a = ...
+
+   instance Functor Blah where ...
+   instance Applicative Blah where ...
+
+   instance Monad.Monad Blah where
+     (>>=) = ...
+   #if !(MIN_VERSION_base(4,13,0))
+     fail = Fail.fail
+   #endif
+
+   instance Fail.MonadFail Blah where
+     fail = ...
+   ```
+
+   This approach is also backwards-compatible with previous releases of
+   `base-compat`.
+
+   Note that the `MonadFail` class has only been in `base` since
+   `base-4.9`/GHC 8.0, so accordingly, this can only be backported back
+   to GHC 8.0. If you wish to have a version of
+   `Prelude.Compat`/`Control.Monad.Compat` that backports
+   `MonadFail` to older GHCs (by conditionally depending on the `fail`
+   library), use the `Prelude.Compat`/`Control.Monad.Compat` modules from the
+   `base-compat-batteries` package.
+
+ - Introduce the `Data.Type.Equality.Compat` module, which re-exports
+   `Data.Type.Equality` if using `base-4.7`/GHC-7.8 or later. If using an older
+   version of `base`, this module is empty.
+
+   If you wish to have a version of
+   `Data.Type.Equality.Compat` with older GHCs
+   (by conditionally depending on the `type-equality` library),
+   use the `Data.Type.Equality.Compat` module from the
+   `base-compat-batteries` package.
+
 ## Changes in 0.10.5 [2018.10.18]
  - Enable `BangPatterns` in `Prelude.Compat`.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/README.markdown 
new/base-compat-0.11.0/README.markdown
--- old/base-compat-0.10.5/README.markdown      2018-10-18 16:41:48.000000000 
+0200
+++ new/base-compat-0.11.0/README.markdown      2001-09-09 03:46:40.000000000 
+0200
@@ -302,6 +302,11 @@
 
 ## Supported versions of GHC/`base`
 
+ * `ghc-8.8.1`  / `base-4.13.0.0`
+ * `ghc-8.6.5`  / `base-4.12.0.0`
+ * `ghc-8.6.4`  / `base-4.12.0.0`
+ * `ghc-8.6.3`  / `base-4.12.0.0`
+ * `ghc-8.6.2`  / `base-4.12.0.0`
  * `ghc-8.6.1`  / `base-4.12.0.0`
  * `ghc-8.4.4`  / `base-4.11.1.0`
  * `ghc-8.4.3`  / `base-4.11.1.0`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/base-compat.cabal 
new/base-compat-0.11.0/base-compat.cabal
--- old/base-compat-0.10.5/base-compat.cabal    2018-10-18 16:41:48.000000000 
+0200
+++ new/base-compat-0.11.0/base-compat.cabal    2001-09-09 03:46:40.000000000 
+0200
@@ -1,5 +1,5 @@
 name:             base-compat
-version:          0.10.5
+version:          0.11.0
 license:          MIT
 license-file:     LICENSE
 copyright:        (c) 2012-2018 Simon Hengel,
@@ -53,6 +53,7 @@
                   , GHC == 8.2.*
                   , GHC == 8.4.*
                   , GHC == 8.6.*
+                  , GHC == 8.8.*
 extra-source-files: CHANGES.markdown, README.markdown
 
 source-repository head
@@ -110,6 +111,7 @@
       Data.STRef.Compat
       Data.String.Compat
       Data.Type.Coercion.Compat
+      Data.Type.Equality.Compat
       Data.Version.Compat
       Data.Void.Compat
       Data.Word.Compat
@@ -167,6 +169,7 @@
       Data.STRef.Compat.Repl
       Data.String.Compat.Repl
       Data.Type.Coercion.Compat.Repl
+      Data.Type.Equality.Compat.Repl
       Data.Version.Compat.Repl
       Data.Void.Compat.Repl
       Data.Word.Compat.Repl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/src/Control/Monad/Compat.hs 
new/base-compat-0.11.0/src/Control/Monad/Compat.hs
--- old/base-compat-0.10.5/src/Control/Monad/Compat.hs  2018-10-18 
16:41:48.000000000 +0200
+++ new/base-compat-0.11.0/src/Control/Monad/Compat.hs  2001-09-09 
03:46:40.000000000 +0200
@@ -1,7 +1,11 @@
 {-# LANGUAGE CPP, NoImplicitPrelude #-}
 module Control.Monad.Compat (
   module Base
-, Monad(..)
+, Monad
+#if MIN_VERSION_base(4,9,0)
+, MonadFail
+#endif
+, fail
 , MonadPlus(..)
 #if !(MIN_VERSION_base(4,8,0))
 , foldM
@@ -31,7 +35,8 @@
 ) where
 
 #if MIN_VERSION_base(4,9,0)
-import Control.Monad as Base
+import Control.Monad as Base hiding (fail)
+import Control.Monad.Fail as Base
 #else
 import Control.Monad as Base hiding (
     forever
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/base-compat-0.10.5/src/Data/Type/Equality/Compat/Repl.hs 
new/base-compat-0.11.0/src/Data/Type/Equality/Compat/Repl.hs
--- old/base-compat-0.10.5/src/Data/Type/Equality/Compat/Repl.hs        
1970-01-01 01:00:00.000000000 +0100
+++ new/base-compat-0.11.0/src/Data/Type/Equality/Compat/Repl.hs        
2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,8 @@
+{-# LANGUAGE PackageImports #-}
+{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}
+-- | Reexports "Data.Type.Equality.Compat"
+-- from a globally unique namespace.
+module Data.Type.Equality.Compat.Repl (
+  module Data.Type.Equality.Compat
+) where
+import "this" Data.Type.Equality.Compat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/src/Data/Type/Equality/Compat.hs 
new/base-compat-0.11.0/src/Data/Type/Equality/Compat.hs
--- old/base-compat-0.10.5/src/Data/Type/Equality/Compat.hs     1970-01-01 
01:00:00.000000000 +0100
+++ new/base-compat-0.11.0/src/Data/Type/Equality/Compat.hs     2001-09-09 
03:46:40.000000000 +0200
@@ -0,0 +1,14 @@
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+{-# LANGUAGE RankNTypes #-}
+#if __GLASGOW_HASKELL__ >= 702
+{-# LANGUAGE Trustworthy #-}
+#endif
+module Data.Type.Equality.Compat (
+#if MIN_VERSION_base(4,7,0)
+  module Base
+#endif
+) where
+
+#if MIN_VERSION_base(4,7,0)
+import Data.Type.Equality as Base
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-compat-0.10.5/src/Prelude/Compat.hs 
new/base-compat-0.11.0/src/Prelude/Compat.hs
--- old/base-compat-0.10.5/src/Prelude/Compat.hs        2018-10-18 
16:41:48.000000000 +0200
+++ new/base-compat-0.11.0/src/Prelude/Compat.hs        2001-09-09 
03:46:40.000000000 +0200
@@ -235,6 +235,9 @@
 , Functor
 , Integral
 , Monad
+#if MIN_VERSION_base(4,9,0)
+, MonadFail
+#endif
 , Monoid
 , Num (fromInteger)
 , Ord
@@ -274,10 +277,14 @@
 
 #if MIN_VERSION_base(4,9,0)
 
-import Prelude as Base
-# if MIN_VERSION_base(4,10,0) && !(MIN_VERSION_base(4,12,0))
-  hiding (($!))
+import Prelude as Base hiding (
+# if !(MIN_VERSION_base(4,13,0))
+    fail
+#  if MIN_VERSION_base(4,10,0) && !(MIN_VERSION_base(4,12,0))
+  , ($!)
+#  endif
 # endif
+  )
 
 #else
 
@@ -322,6 +329,10 @@
 import Data.Semigroup as Base (Semigroup((<>)))
 #endif
 
+#if MIN_VERSION_base(4,9,0) && !(MIN_VERSION_base(4,13,0))
+import Control.Monad.Fail as Base (MonadFail(fail))
+#endif
+
 #if MIN_VERSION_base(4,10,0) && !(MIN_VERSION_base(4,12,0))
 import GHC.Exts (TYPE)
 #endif


Reply via email to