Hello community,
here is the log from the commit of package ghc-safe for openSUSE:Factory checked in at 2016-12-06 14:25:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-safe (Old)
and /work/SRC/openSUSE:Factory/.ghc-safe.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-safe"
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-safe/ghc-safe.changes 2016-07-27 16:10:08.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-safe.new/ghc-safe.changes 2016-12-06 14:25:40.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Nov 14 09:29:56 UTC 2016 - psimons@suse.com
+
+- Update to version 0.3.10 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
safe-0.3.9.tar.gz
New:
----
safe-0.3.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-safe.spec ++++++
--- /var/tmp/diff_new_pack.KsYWHW/_old 2016-12-06 14:25:41.000000000 +0100
+++ /var/tmp/diff_new_pack.KsYWHW/_new 2016-12-06 14:25:41.000000000 +0100
@@ -18,11 +18,11 @@
%global pkg_name safe
Name: ghc-%{pkg_name}
-Version: 0.3.9
+Version: 0.3.10
Release: 0
Summary: Library of safe (exception free) functions
License: BSD-3-Clause
-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
@@ -70,15 +70,12 @@
%prep
%setup -q -n %{pkg_name}-%{version}
-
%build
%ghc_lib_build
-
%install
%ghc_lib_install
-
%post devel
%ghc_pkg_recache
@@ -91,6 +88,6 @@
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
-%doc README.md
+%doc CHANGES.txt README.md
%changelog
++++++ safe-0.3.9.tar.gz -> safe-0.3.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safe-0.3.9/CHANGES.txt new/safe-0.3.10/CHANGES.txt
--- old/safe-0.3.9/CHANGES.txt 2015-05-09 21:59:23.000000000 +0200
+++ new/safe-0.3.10/CHANGES.txt 2016-11-09 00:06:13.000000000 +0100
@@ -1,5 +1,7 @@
Changelog for Safe
+0.3.10
+ #15, add Safe cycle
0.3.9
#9, add Safe toEnum
0.3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safe-0.3.9/LICENSE new/safe-0.3.10/LICENSE
--- old/safe-0.3.9/LICENSE 2015-05-09 21:59:23.000000000 +0200
+++ new/safe-0.3.10/LICENSE 2016-11-09 00:06:13.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright Neil Mitchell 2007-2015.
+Copyright Neil Mitchell 2007-2016.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safe-0.3.9/Safe.hs new/safe-0.3.10/Safe.hs
--- old/safe-0.3.9/Safe.hs 2015-05-09 21:59:23.000000000 +0200
+++ new/safe-0.3.10/Safe.hs 2016-11-09 00:06:13.000000000 +0100
@@ -32,6 +32,7 @@
foldl1May', foldl1Def', foldl1Note',
scanl1May, scanl1Def, scanl1Note,
scanr1May, scanr1Def, scanr1Note,
+ cycleMay, cycleDef, cycleNote,
fromJustDef, fromJustNote,
assertNote,
atMay, atDef, atNote,
@@ -189,6 +190,15 @@
scanr1Note note = fromNote note "scanr1Note []" .^ scanr1May
scanl1Note note = fromNote note "scanl1Note []" .^ scanl1May
+cycleMay :: [a] -> Maybe [a]
+cycleMay = liftMay null cycle
+
+cycleDef :: [a] -> [a] -> [a]
+cycleDef def = fromMaybe def . cycleMay
+
+cycleNote :: String -> [a] -> [a]
+cycleNote note = fromNote note "cycleNote []" . cycleMay
+
-- | An alternative name for 'fromMaybe', to fit the naming scheme of this package.
-- Generally using 'fromMaybe' directly would be considered better style.
fromJustDef :: a -> Maybe a -> a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safe-0.3.9/safe.cabal new/safe-0.3.10/safe.cabal
--- old/safe-0.3.9/safe.cabal 2015-05-09 21:59:23.000000000 +0200
+++ new/safe-0.3.10/safe.cabal 2016-11-09 00:06:13.000000000 +0100
@@ -1,17 +1,17 @@
-cabal-version: >= 1.6
+cabal-version: >= 1.18
build-type: Simple
name: safe
-version: 0.3.9
+version: 0.3.10
license: BSD3
license-file: LICENSE
category: Unclassified
author: Neil Mitchell