Hello community,

here is the log from the commit of package ghc-base-orphans for 
openSUSE:Factory checked in at 2016-03-16 10:33:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-base-orphans (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-base-orphans.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-base-orphans"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-base-orphans/ghc-base-orphans.changes        
2016-02-29 09:16:08.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-base-orphans.new/ghc-base-orphans.changes   
2016-03-16 10:33:31.000000000 +0100
@@ -1,0 +2,8 @@
+Tue Mar  8 08:50:21 UTC 2016 - [email protected]
+
+- update to 0.5.3
+* Backported Alternative, MonadPlus and MonadZip instances for U1 and Proxy, 
and 
+    made the Functor, Foldable, Traversable, Alternative, and Monad instances 
for 
+    U1 lazier to correspond with base-4.9
+
+-------------------------------------------------------------------

Old:
----
  base-orphans-0.5.2.tar.gz

New:
----
  base-orphans-0.5.3.tar.gz

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

Other differences:
------------------
++++++ ghc-base-orphans.spec ++++++
--- /var/tmp/diff_new_pack.Qovj4N/_old  2016-03-16 10:33:32.000000000 +0100
+++ /var/tmp/diff_new_pack.Qovj4N/_new  2016-03-16 10:33:32.000000000 +0100
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:           ghc-base-orphans
-Version:        0.5.2
+Version:        0.5.3
 Release:        0
 Summary:        Backwards-compatible orphan instances for base
 Group:          System/Libraries

++++++ base-orphans-0.5.2.tar.gz -> base-orphans-0.5.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-orphans-0.5.2/CHANGES.markdown 
new/base-orphans-0.5.3/CHANGES.markdown
--- old/base-orphans-0.5.2/CHANGES.markdown     2016-02-25 17:46:31.000000000 
+0100
+++ new/base-orphans-0.5.3/CHANGES.markdown     2016-02-29 16:32:10.000000000 
+0100
@@ -1,3 +1,8 @@
+## Changes in 0.5.3
+ - Backported `Alternative`, `MonadPlus` and `MonadZip` instances for `U1` and
+   `Proxy`, and made the `Functor`, `Foldable`, `Traversable`, `Alternative`,
+   and `Monad` instances for `U1` lazier to correspond with `base-4.9`
+
 ## Changes in 0.5.2
  - Backported `Enum`, `Bounded`, `Ix`, `Functor`, `Applicative`, `Monad`,
    `MonadFix`, `MonadPlus`, `MonadZip`, `Foldable`, `Traversable`, and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-orphans-0.5.2/base-orphans.cabal 
new/base-orphans-0.5.3/base-orphans.cabal
--- old/base-orphans-0.5.2/base-orphans.cabal   2016-02-25 17:46:31.000000000 
+0100
+++ new/base-orphans-0.5.3/base-orphans.cabal   2016-02-29 16:32:10.000000000 
+0100
@@ -1,9 +1,9 @@
--- This file has been generated from package.yaml by hpack version 0.9.1.
+-- This file has been generated from package.yaml by hpack version 0.10.0.
 --
 -- see: https://github.com/sol/hpack
 
 name:                base-orphans
-version:             0.5.2
+version:             0.5.3
 synopsis:            Backwards-compatible orphan instances for base
 description:         @base-orphans@ defines orphan instances that mimic 
instances available in later versions of @base@ to a wider (older) range of 
compilers. @base-orphans@ does not export anything except the orphan instances 
themselves and complements @<http://hackage.haskell.org/package/base-compat 
base-compat>@.
                      See the README for what instances are covered: 
<https://github.com/haskell-compat/base-orphans#readme>. See also the 
<https://github.com/haskell-compat/base-orphans#what-is-not-covered what is not 
covered> section.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base-orphans-0.5.2/src/Data/Orphans.hs 
new/base-orphans-0.5.3/src/Data/Orphans.hs
--- old/base-orphans-0.5.2/src/Data/Orphans.hs  2016-02-25 17:46:31.000000000 
+0100
+++ new/base-orphans-0.5.3/src/Data/Orphans.hs  2016-02-29 16:32:10.000000000 
+0100
@@ -607,6 +607,26 @@
     mzipWith = liftM2
 # endif
 
+# if MIN_VERSION_base(4,7,0)
+instance Alternative Proxy where
+    empty = Proxy
+    {-# INLINE empty #-}
+    _ <|> _ = Proxy
+    {-# INLINE (<|>) #-}
+
+instance MonadPlus Proxy where
+#  if !(MIN_VERSION_base(4,8,0))
+    mzero = Proxy
+    {-# INLINE mzero #-}
+    mplus _ _ = Proxy
+    {-# INLINE mplus #-}
+#  endif
+
+instance MonadZip Proxy where
+    mzipWith _ _ _ = Proxy
+    {-# INLINE mzipWith #-}
+# endif
+
 # if MIN_VERSION_base(4,8,0)
 deriving instance (Data (f a), Typeable f, Typeable a)
     => Data (Alt (f :: * -> *) (a :: *))
@@ -633,7 +653,6 @@
 deriving instance Data Associativity
 
 deriving instance                                 F.Foldable V1
-deriving instance                                 F.Foldable U1
 deriving instance                                 F.Foldable Par1
 deriving instance F.Foldable f                 => F.Foldable (Rec1 f)
 deriving instance                                 F.Foldable (K1 i c)
@@ -643,7 +662,6 @@
 deriving instance (F.Foldable f, F.Foldable g) => F.Foldable (f :.: g)
 
 deriving instance                           Functor V1
-deriving instance                           Functor U1
 deriving instance                           Functor Par1
 deriving instance Functor f              => Functor (Rec1 f)
 deriving instance                           Functor (K1 i c)
@@ -667,6 +685,9 @@
         fstP (a :*: _) = a
         sndP (_ :*: b) = b
 
+instance MonadZip U1 where
+    mzipWith _ _ _ = U1
+
 instance MonadZip Par1 where
     mzipWith = liftM2
 
@@ -680,7 +701,6 @@
     mzipWith f (x1 :*: y1) (x2 :*: y2) = mzipWith f x1 x2 :*: mzipWith f y1 y2
 
 deriving instance                                       T.Traversable V1
-deriving instance                                       T.Traversable U1
 deriving instance                                       T.Traversable Par1
 deriving instance T.Traversable f                    => T.Traversable (Rec1 f)
 deriving instance                                       T.Traversable (K1 i c)
@@ -703,19 +723,57 @@
     readListPrec = readListPrecDefault
 deriving instance Show (V1 p)
 
+instance Functor U1 where
+  fmap _ _ = U1
+
 instance Applicative U1 where
   pure _ = U1
-  U1 <*> U1 = U1
+  _ <*> _ = U1
 
 instance Alternative U1 where
   empty = U1
-  U1 <|> U1 = U1
+  _ <|> _ = U1
 
 instance Monad U1 where
 #  if !(MIN_VERSION_base(4,8,0))
   return _ = U1
 #  endif
-  U1 >>= _ = U1
+  _ >>= _ = U1
+
+instance MonadPlus U1 where
+#  if !(MIN_VERSION_base(4,8,0))
+  mzero = U1
+  mplus _ _ = U1
+#  endif
+
+instance F.Foldable U1 where
+    foldMap _ _ = mempty
+    {-# INLINE foldMap #-}
+    fold _ = mempty
+    {-# INLINE fold #-}
+    foldr _ z _ = z
+    {-# INLINE foldr #-}
+    foldl _ z _ = z
+    {-# INLINE foldl #-}
+    foldl1 _ _ = error "foldl1: U1"
+    foldr1 _ _ = error "foldr1: U1"
+#  if MIN_VERSION_base(4,8,0)
+    length _   = 0
+    null _     = True
+    elem _ _   = False
+    sum _      = 0
+    product _  = 1
+#  endif
+
+instance T.Traversable U1 where
+    traverse _ _ = pure U1
+    {-# INLINE traverse #-}
+    sequenceA _ = pure U1
+    {-# INLINE sequenceA #-}
+    mapM _ _ = return U1
+    {-# INLINE mapM #-}
+    sequence _ = return U1
+    {-# INLINE sequence #-}
 
 instance Applicative Par1 where
   pure a = Par1 a


Reply via email to