Hello community, here is the log from the commit of package ghc-basic-prelude for openSUSE:Factory checked in at 2017-04-14 13:39:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-basic-prelude (Old) and /work/SRC/openSUSE:Factory/.ghc-basic-prelude.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-basic-prelude" Fri Apr 14 13:39:48 2017 rev:2 rq:485225 version:0.6.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-basic-prelude/ghc-basic-prelude.changes 2017-03-28 15:18:33.244737508 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-basic-prelude.new/ghc-basic-prelude.changes 2017-04-14 13:39:49.857499835 +0200 @@ -1,0 +2,10 @@ +Tue Mar 7 11:19:23 UTC 2017 - psim...@suse.com + +- Update to version 0.6.1.1 with cabal2obs. + +------------------------------------------------------------------- +Thu Sep 15 07:08:33 UTC 2016 - psim...@suse.com + +- Update to version 0.6.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- basic-prelude-0.5.2.tar.gz New: ---- basic-prelude-0.6.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-basic-prelude.spec ++++++ --- /var/tmp/diff_new_pack.jHTURP/_old 2017-04-14 13:39:50.665385655 +0200 +++ /var/tmp/diff_new_pack.jHTURP/_new 2017-04-14 13:39:50.669385090 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-basic-prelude # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,14 @@ %global pkg_name basic-prelude Name: ghc-%{pkg_name} -Version: 0.5.2 +Version: 0.6.1.1 Release: 0 Summary: An enhanced core prelude; a common foundation for alternate preludes License: MIT -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-ReadArgs-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel @@ -40,7 +39,6 @@ BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description The premise of 'basic-prelude' is that there are a lot of very commonly desired @@ -73,15 +71,12 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache ++++++ basic-prelude-0.5.2.tar.gz -> basic-prelude-0.6.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/basic-prelude-0.5.2/BasicPrelude.hs new/basic-prelude-0.6.1.1/BasicPrelude.hs --- old/basic-prelude-0.5.2/BasicPrelude.hs 2016-05-11 06:43:48.000000000 +0200 +++ new/basic-prelude-0.6.1.1/BasicPrelude.hs 2016-09-08 11:11:56.000000000 +0200 @@ -47,7 +47,7 @@ , BasicPrelude.sum , BasicPrelude.product -- ** Text for Read and Show operations - , show + , tshow , fromShow , read , readIO @@ -79,9 +79,8 @@ , Prelude.gcd , Prelude.lcm -- ** Show and Read + , Prelude.Show (..) , Prelude.ShowS - , Prelude.showsPrec - , Prelude.showList , Prelude.shows , Prelude.showChar , Prelude.showString @@ -174,17 +173,19 @@ -- | Compute the sum of a finite list of numbers. -sum :: Num a => [a] -> a +sum :: (Foldable f, Num a) => f a -> a sum = Data.Foldable.foldl' (+) 0 -- | Compute the product of a finite list of numbers. -product :: Num a => [a] -> a +product :: (Foldable f, Num a) => f a -> a product = Data.Foldable.foldl' (*) 1 -- | Convert a value to readable Text -show :: Show a => a -> Text -show = Text.pack . Prelude.show +-- +-- @since 0.6.0 +tshow :: Show a => a -> Text +tshow = Text.pack . Prelude.show -- | Convert a value to readable IsString -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/basic-prelude-0.5.2/ChangeLog.md new/basic-prelude-0.6.1.1/ChangeLog.md --- old/basic-prelude-0.5.2/ChangeLog.md 2016-05-11 06:43:48.000000000 +0200 +++ new/basic-prelude-0.6.1.1/ChangeLog.md 2017-03-02 18:41:05.000000000 +0100 @@ -1,3 +1,15 @@ +## 0.6.1.1 + +* Add `HasCallStack` for `terror` + +## 0.6.1 + +* Generalize `sum` and `product` to `Foldable` [#69](https://github.com/snoyberg/basic-prelude/issues/69) + +## 0.6.0 + +* Export `show` from `Show` typeclass, and rename current `show` to `tshow` [#67](https://github.com/snoyberg/basic-prelude/issues/67) + ## 0.5.2 * Expose `bool` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/basic-prelude-0.5.2/CorePrelude.hs new/basic-prelude-0.6.1.1/CorePrelude.hs --- old/basic-prelude-0.5.2/CorePrelude.hs 2016-05-11 06:43:48.000000000 +0200 +++ new/basic-prelude-0.6.1.1/CorePrelude.hs 2017-03-02 18:40:28.000000000 +0100 @@ -239,6 +239,10 @@ import Data.Monoid ((<>)) #endif +#if MIN_VERSION_base(4,9,0) +import GHC.Stack (HasCallStack) +#endif + type LText = Data.Text.Lazy.Text type LByteString = Data.ByteString.Lazy.ByteString type UVector = Data.Vector.Unboxed.Vector @@ -281,5 +285,9 @@ -- | @error@ applied to @Text@ -- -- Since 0.4.1 +#if MIN_VERSION_base(4,9,0) +terror :: HasCallStack => Text -> a +#else terror :: Text -> a +#endif terror = Prelude.error . Data.Text.unpack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/basic-prelude-0.5.2/basic-prelude.cabal new/basic-prelude-0.6.1.1/basic-prelude.cabal --- old/basic-prelude-0.5.2/basic-prelude.cabal 2016-05-11 06:43:48.000000000 +0200 +++ new/basic-prelude-0.6.1.1/basic-prelude.cabal 2017-03-02 18:40:52.000000000 +0100 @@ -1,5 +1,5 @@ name: basic-prelude -version: 0.5.2 +version: 0.6.1.1 synopsis: An enhanced core prelude; a common foundation for alternate preludes. description: The premise of @basic-prelude@ is that there are a lot of very commonly desired features missing from the standard @Prelude@, such as commonly used operators (@\<$\>@ and @>=>@, for instance) and imports for common datatypes (e.g., @ByteString@ and @Vector@). At the same time, there are lots of other components which are more debatable, such as providing polymorphic versions of common functions.