commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2020-09-15 16:19:37 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new.4249 (New) Package is "ghc-store-core" Tue Sep 15 16:19:37 2020 rev:9 rq:833296 version:0.4.4.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2019-12-27 13:57:49.596787553 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new.4249/ghc-store-core.changes 2020-09-15 16:19:41.170102543 +0200 @@ -2 +2 @@ -Fri Nov 8 16:14:50 UTC 2019 - Peter Simons +Tue Aug 25 10:19:04 UTC 2020 - psim...@suse.com @@ -4 +4 @@ -- Drop obsolete group attributes. +- Add store-core at version 0.4.4.3. @@ -6,79 +5,0 @@ -Thu Oct 24 02:03:02 UTC 2019 - psim...@suse.com - -- Update store-core to version 0.4.4.2. - ## 0.4.4.2 - - * Build fixed for GHC-7.10. See -[#146](https://github.com/fpco/store/issues/146) - -Fri Oct 18 02:02:40 UTC 2019 - psim...@suse.com - -- Update store-core to version 0.4.4.1. - ## 0.4.4.1 - - * Now builds with GHC-8.8. - -Sat Oct 20 11:32:03 UTC 2018 - Peter Simons - -- Use https URL to refer to bugs.opensuse.org. - -Wed Jul 18 14:26:42 UTC 2018 - psim...@suse.com - -- Cosmetic: replace tabs with blanks, strip trailing white space, - and update copyright headers with spec-cleaner. - -Fri Jul 13 14:32:10 UTC 2018 - psim...@suse.com - -- Update store-core to version 0.4.4. - ## 0.4.4 - - * Build fixed with `--flag store-core:force-alignment` / on architectures -like PowerPC. - - ## 0.4.3 - - * Now builds with primitive >= 0.6.4.0 - - ## 0.4.2 - - * Adds `unsafeMakePokeState`, `unsafeMakePeekState`, and -`maybeAlignmentBufferSize`, so that library users can write their own -`encode` / `decode` functions. -See [#126](https://github.com/fpco/store/pull/126) - -Sun Jun 17 08:44:48 UTC 2018 - ptromm...@icloud.com - -- Add fix-force-aligment.patch -* fixes build on ppc64 -* see upstream issue https://github.com/fpco/store/issues/133 - -Wed May 16 14:36:28 UTC 2018 - psim...@suse.com - -- Prefer the new %license attribute over %doc. - -Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com - -- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. - -Wed Jul 26 16:56:09 UTC 2017 - psim...@suse.com - -- Update to version 0.4.1. - -Tue Mar 7 11:19:23 UTC 2017 - psim...@suse.com - -- Update to version 0.4 with cabal2obs. - -Thu Feb 16 11:38:29 UTC 2017 - psim...@suse.com - -- Update to version 0.3 with cabal2obs. Old: store-core-0.4.4.2.tar.gz New: store-core-0.4.4.3.tar.gz Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.GVpMXJ/_old 2020-09-15 16:19:42.582103895 +0200 +++ /var/tmp/diff_new_pack.GVpMXJ/_new 2020-09-15 16:19:42.586103898 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-store-core # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %global pkg_name store-core Name: ghc-%{pkg_name} -Version:0.4.4.2 +Version:0.4.4.3 Release:0 Summary:Fast and lightweight binary serialization License:MIT @@ -26,7 +26,6 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-fail-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel @@ -46,7 +45,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} %build %ghc_lib_build ++ store-core-0.4.4.2.tar.gz -> store-core-0.4.4.3.tar.gz ++ diff -urN
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2019-12-27 13:57:43 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new.6675 (New) Package is "ghc-store-core" Fri Dec 27 13:57:43 2019 rev:8 rq:759517 version:0.4.4.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2018-10-25 09:05:11.934546571 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new.6675/ghc-store-core.changes 2019-12-27 13:57:49.596787553 +0100 @@ -1,0 +2,22 @@ +Fri Nov 8 16:14:50 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- +Thu Oct 24 02:03:02 UTC 2019 - psim...@suse.com + +- Update store-core to version 0.4.4.2. + ## 0.4.4.2 + + * Build fixed for GHC-7.10. See +[#146](https://github.com/fpco/store/issues/146) + +--- +Fri Oct 18 02:02:40 UTC 2019 - psim...@suse.com + +- Update store-core to version 0.4.4.1. + ## 0.4.4.1 + + * Now builds with GHC-8.8. + +--- Old: store-core-0.4.4.tar.gz New: store-core-0.4.4.2.tar.gz Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.TGLf9J/_old 2019-12-27 13:57:51.824788630 +0100 +++ /var/tmp/diff_new_pack.TGLf9J/_new 2019-12-27 13:57:51.828788632 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-store-core # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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,15 @@ %global pkg_name store-core Name: ghc-%{pkg_name} -Version:0.4.4 +Version:0.4.4.2 Release:0 Summary:Fast and lightweight binary serialization License:MIT -Group: Development/Libraries/Haskell 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 BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-fail-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel @@ -37,7 +37,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} ++ store-core-0.4.4.tar.gz -> store-core-0.4.4.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.4.4/ChangeLog.md new/store-core-0.4.4.2/ChangeLog.md --- old/store-core-0.4.4/ChangeLog.md 2018-06-17 10:51:22.0 +0200 +++ new/store-core-0.4.4.2/ChangeLog.md 2019-10-23 07:03:52.0 +0200 @@ -1,5 +1,14 @@ # ChangeLog +## 0.4.4.2 + +* Build fixed for GHC-7.10. See + [#146](https://github.com/fpco/store/issues/146) + +## 0.4.4.1 + +* Now builds with GHC-8.8. + ## 0.4.4 * Build fixed with `--flag store-core:force-alignment` / on architectures diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.4.4/src/Data/Store/Core.hs new/store-core-0.4.4.2/src/Data/Store/Core.hs --- old/store-core-0.4.4/src/Data/Store/Core.hs 2018-06-17 10:49:13.0 +0200 +++ new/store-core-0.4.4.2/src/Data/Store/Core.hs 2019-10-17 05:26:06.0 +0200 @@ -112,8 +112,10 @@ (offset2, x') <- x ptr offset1 runPoke (f x') ptr offset2 {-# INLINE (>>=) #-} +#if !(MIN_VERSION_base(4,13,0)) fail = pokeException . T.pack {-# INLINE fail #-} +#endif #if MIN_VERSION_base(4,9,0) instance Fail.MonadFail Poke where @@ -228,8 +230,10 @@ PeekResult ptr2 x' <- x end ptr1 runPeek (f x') end ptr2 {-# INLINE (>>=) #-} +#if !(MIN_VERSION_base(4,13,0)) fail = peekException . T.pack {-# INLINE fail #-} +#endif #if MIN_VERSION_base(4,9,0) instance Fail.MonadFail Peek where diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.4.4/store-core.cabal new/store-core-0.4.4.2/store-core.cabal --- old/store-core-0.4.4/store-core.cabal 2018-06-17 10:55:04.0 +0200 +++ new/store-core-0.4.4.2/store-core.cabal 2019-10-23 07:08:28.0 +0200 @@ -1,11 +1,13 @@ --- This file has
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2018-10-25 09:05:09 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Thu Oct 25 09:05:09 2018 rev:7 rq:643463 version:0.4.4 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2018-07-24 17:22:09.899283052 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2018-10-25 09:05:11.934546571 +0200 @@ -1,0 +2,5 @@ +Sat Oct 20 11:32:03 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +--- Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.MNF7fi/_old 2018-10-25 09:05:12.594546166 +0200 +++ /var/tmp/diff_new_pack.MNF7fi/_new 2018-10-25 09:05:12.594546166 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ #
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2018-07-24 17:22:08 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Tue Jul 24 17:22:08 2018 rev:6 rq:623861 version:0.4.4 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2018-05-30 12:27:21.102184099 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2018-07-24 17:22:09.899283052 +0200 @@ -1,0 +2,33 @@ +Wed Jul 18 14:26:42 UTC 2018 - psim...@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +--- +Fri Jul 13 14:32:10 UTC 2018 - psim...@suse.com + +- Update store-core to version 0.4.4. + ## 0.4.4 + + * Build fixed with `--flag store-core:force-alignment` / on architectures +like PowerPC. + + ## 0.4.3 + + * Now builds with primitive >= 0.6.4.0 + + ## 0.4.2 + + * Adds `unsafeMakePokeState`, `unsafeMakePeekState`, and +`maybeAlignmentBufferSize`, so that library users can write their own +`encode` / `decode` functions. +See [#126](https://github.com/fpco/store/pull/126) + +--- +Sun Jun 17 08:44:48 UTC 2018 - ptromm...@icloud.com + +- Add fix-force-aligment.patch +* fixes build on ppc64 +* see upstream issue https://github.com/fpco/store/issues/133 + +--- @@ -25 +57,0 @@ - Old: store-core-0.4.1.tar.gz New: store-core-0.4.4.tar.gz Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.tm6o6M/_old 2018-07-24 17:22:10.919284357 +0200 +++ /var/tmp/diff_new_pack.tm6o6M/_new 2018-07-24 17:22:10.923284363 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-store-core # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,7 +18,7 @@ %global pkg_name store-core Name: ghc-%{pkg_name} -Version:0.4.1 +Version:0.4.4 Release:0 Summary:Fast and lightweight binary serialization License:MIT @@ -27,7 +27,6 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-fail-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel ++ store-core-0.4.1.tar.gz -> store-core-0.4.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.4.1/ChangeLog.md new/store-core-0.4.4/ChangeLog.md --- old/store-core-0.4.1/ChangeLog.md 2017-05-06 04:54:38.0 +0200 +++ new/store-core-0.4.4/ChangeLog.md 2018-06-17 10:51:22.0 +0200 @@ -1,5 +1,21 @@ # ChangeLog +## 0.4.4 + +* Build fixed with `--flag store-core:force-alignment` / on architectures + like PowerPC. + +## 0.4.3 + +* Now builds with primitive >= 0.6.4.0 + +## 0.4.2 + +* Adds `unsafeMakePokeState`, `unsafeMakePeekState`, and + `maybeAlignmentBufferSize`, so that library users can write their own + `encode` / `decode` functions. + See [#126](https://github.com/fpco/store/pull/126) + ## 0.4.1 * Less aggressive inlining, resulting in faster compilation / simplifier diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.4.1/src/Data/Store/Core.hs new/store-core-0.4.4/src/Data/Store/Core.hs --- old/store-core-0.4.1/src/Data/Store/Core.hs 2017-05-06 05:07:24.0 +0200 +++ new/store-core-0.4.4/src/Data/Store/Core.hs 2018-06-17 10:49:13.0 +0200 @@ -30,6 +30,8 @@ , pokeFromForeignPtr, peekToPlainForeignPtr, pokeFromPtr -- * ByteArray , pokeFromByteArray, peekToByteArray + -- * Creation of PokeState / PeekState +, unsafeMakePokeState, unsafeMakePeekState, maybeAlignmentBufferSize ) where import Control.Applicative @@ -40,14 +42,14 @@ import Data.ByteString (ByteString) import qualified Data.ByteString.Internal as BS import Data.Monoid ((<>)) -import Data.Primitive.ByteArray +import Data.Primitive.ByteArray (ByteArray, MutableByteArray(..), newByteArray, unsafeFreezeByteArray) import qualified Data.Text as T import
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2018-05-30 12:20:43 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Wed May 30 12:20:43 2018 rev:5 rq:609820 version:0.4.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2017-09-15 22:14:43.647635287 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2018-05-30 12:27:21.102184099 +0200 @@ -1,0 +2,5 @@ +Wed May 16 14:36:28 UTC 2018 - psim...@suse.com + +- Prefer the new %license attribute over %doc. + +--- Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.5t1hXX/_old 2018-05-30 12:27:22.550133780 +0200 +++ /var/tmp/diff_new_pack.5t1hXX/_new 2018-05-30 12:27:22.554133642 +0200 @@ -63,7 +63,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc ChangeLog.md
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2017-09-15 22:14:42 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Fri Sep 15 22:14:42 2017 rev:4 rq:525436 version:0.4.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2017-08-31 20:59:55.182280079 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2017-09-15 22:14:43.647635287 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.DpRYI0/_old 2017-09-15 22:14:44.203556974 +0200 +++ /var/tmp/diff_new_pack.DpRYI0/_new 2017-09-15 22:14:44.207556410 +0200 @@ -22,8 +22,8 @@ Release:0 Summary:Fast and lightweight binary serialization License:MIT -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +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 BuildRequires: ghc-bytestring-devel @@ -32,14 +32,13 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Fast and lightweight binary serialization. %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -64,11 +63,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc ChangeLog.md %changelog
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2017-08-31 20:59:54 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Thu Aug 31 20:59:54 2017 rev:3 rq:513502 version:0.4.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2017-05-10 20:49:01.655461889 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2017-08-31 20:59:55.182280079 +0200 @@ -1,0 +2,5 @@ +Wed Jul 26 16:56:09 UTC 2017 - psim...@suse.com + +- Update to version 0.4.1. + +--- Old: store-core-0.3.tar.gz New: store-core-0.4.1.tar.gz Other differences: -- ++ ghc-store-core.spec ++ --- /var/tmp/diff_new_pack.MCmqLC/_old 2017-08-31 20:59:55.942173312 +0200 +++ /var/tmp/diff_new_pack.MCmqLC/_new 2017-08-31 20:59:55.946172750 +0200 @@ -18,7 +18,7 @@ %global pkg_name store-core Name: ghc-%{pkg_name} -Version:0.3 +Version:0.4.1 Release:0 Summary:Fast and lightweight binary serialization License:MIT ++ store-core-0.3.tar.gz -> store-core-0.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.3/ChangeLog.md new/store-core-0.4.1/ChangeLog.md --- old/store-core-0.3/ChangeLog.md 2016-10-24 05:13:37.0 +0200 +++ new/store-core-0.4.1/ChangeLog.md 2017-05-06 04:54:38.0 +0200 @@ -1,5 +1,15 @@ # ChangeLog +## 0.4.1 + +* Less aggressive inlining, resulting in faster compilation / simplifier + not running out of ticks + +## 0.4 + +* Changes result of Peek function to be strict. + (See [#98](https://github.com/fpco/store/pull/98)) + ## 0.3 * Adds support for alignment sensitive architectures, by using temporary buffers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/store-core-0.3/src/Data/Store/Core.hs new/store-core-0.4.1/src/Data/Store/Core.hs --- old/store-core-0.3/src/Data/Store/Core.hs 2016-10-16 03:35:26.0 +0200 +++ new/store-core-0.4.1/src/Data/Store/Core.hs 2017-05-06 05:07:24.0 +0200 @@ -13,7 +13,7 @@ module Data.Store.Core ( -- * Core Types Poke(..), PokeException(..), pokeException -, Peek(..), PeekException(..), peekException, tooManyBytes +, Peek(..), PeekResult(..), PeekException(..), peekException, tooManyBytes , PokeState, pokeStatePtr , PeekState, peekStateEndPtr , Offset @@ -174,26 +174,29 @@ -- together to get more complicated deserializers. This machinery keeps -- track of the current 'Ptr' and end-of-buffer 'Ptr'. newtype Peek a = Peek -{ runPeek :: PeekState -> Ptr Word8 -> IO (Ptr Word8, a) +{ runPeek :: PeekState -> Ptr Word8 -> IO (PeekResult a) -- ^ Run the 'Peek' action, with a 'Ptr' to the end of the buffer -- where data is poked, and a 'Ptr' to the current position. The -- result is the 'Ptr', along with a return value. -- -- May throw a 'PeekException' if the memory contains invalid -- values. -} - deriving Functor +} deriving (Functor) + +-- | A result of a 'Peek' action containing the current 'Ptr' and a return value. +data PeekResult a = PeekResult {-# UNPACK #-} !(Ptr Word8) !a +deriving (Functor) instance Applicative Peek where -pure x = Peek (\_ ptr -> return (ptr, x)) +pure x = Peek (\_ ptr -> return $ PeekResult ptr x) {-# INLINE pure #-} Peek f <*> Peek g = Peek $ \end ptr1 -> do -(ptr2, f') <- f end ptr1 -(ptr3, g') <- g end ptr2 -return (ptr3, f' g') +PeekResult ptr2 f' <- f end ptr1 +PeekResult ptr3 g' <- g end ptr2 +return $ PeekResult ptr3 (f' g') {-# INLINE (<*>) #-} Peek f *> Peek g = Peek $ \end ptr1 -> do -(ptr2, _) <- f end ptr1 +PeekResult ptr2 _ <- f end ptr1 g end ptr2 {-# INLINE (*>) #-} @@ -203,7 +206,7 @@ (>>) = (*>) {-# INLINE (>>) #-} Peek x >>= f = Peek $ \end ptr1 -> do -(ptr2, x') <- x end ptr1 +PeekResult ptr2 x' <- x end ptr1 runPeek (f x') end ptr2 {-# INLINE (>>=) #-} fail = peekException . T.pack @@ -219,11 +222,11 @@ type PrimState Peek = RealWorld primitive action = Peek $ \_ ptr -> do x <- primitive (unsafeCoerce# action) -return (ptr, x) +return $ PeekResult ptr x {-# INLINE primitive #-} instance MonadIO Peek where -liftIO f = Peek $ \_ ptr -> (ptr, ) <$> f +liftIO f = Peek $ \_ ptr -> PeekResult
commit ghc-store-core for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-store-core for openSUSE:Factory checked in at 2017-05-10 20:49:01 Comparing /work/SRC/openSUSE:Factory/ghc-store-core (Old) and /work/SRC/openSUSE:Factory/.ghc-store-core.new (New) Package is "ghc-store-core" Wed May 10 20:49:01 2017 rev:2 rq:489369 version:0.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-store-core/ghc-store-core.changes 2017-04-12 18:09:13.505271103 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-store-core.new/ghc-store-core.changes 2017-05-10 20:49:01.655461889 +0200 @@ -1,0 +2,5 @@ +Tue Mar 7 11:19:23 UTC 2017 - psim...@suse.com + +- Update to version 0.4 with cabal2obs. + +--- Other differences: --