commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2020-08-28 21:36:30 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.3399 (New) Package is "ghc-primitive" Fri Aug 28 21:36:30 2020 rev:21 rq:829391 version:0.7.1.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2020-07-09 13:19:59.525388041 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.3399/ghc-primitive.changes 2020-08-28 21:36:30.408755887 +0200 @@ -1,0 +2,5 @@ +Tue Aug 18 10:45:47 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.p9gFqF/_old 2020-08-28 21:36:30.980756158 +0200 +++ /var/tmp/diff_new_pack.p9gFqF/_new 2020-08-28 21:36:30.984756160 +0200 @@ -54,7 +54,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
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2020-07-09 13:19:31 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.3060 (New) Package is "ghc-primitive" Thu Jul 9 13:19:31 2020 rev:20 rq:819586 version:0.7.1.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2020-06-19 17:17:08.118839386 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.3060/ghc-primitive.changes 2020-07-09 13:19:59.525388041 +0200 @@ -1,0 +2,9 @@ +Fri Jun 26 02:00:23 UTC 2020 - psim...@suse.com + +- Update primitive to version 0.7.1.0. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/primitive-0.7.1.0/src/changelog.md + +--- Old: primitive-0.7.0.1.tar.gz New: primitive-0.7.1.0.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.eGzE62/_old 2020-07-09 13:20:00.701391758 +0200 +++ /var/tmp/diff_new_pack.eGzE62/_new 2020-07-09 13:20:00.705391771 +0200 @@ -19,18 +19,20 @@ %global pkg_name primitive %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.0.1 +Version:0.7.1.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause 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-deepseq-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-quickcheck-classes-base-devel BuildRequires: ghc-semigroups-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-tasty-devel ++ primitive-0.7.0.1.tar.gz -> primitive-0.7.1.0.tar.gz ++ 4970 lines of diff (skipped)
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2020-06-19 17:17:06 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.3606 (New) Package is "ghc-primitive" Fri Jun 19 17:17:06 2020 rev:19 rq:815154 version:0.7.0.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2020-05-11 13:36:09.456464029 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.3606/ghc-primitive.changes 2020-06-19 17:17:08.118839386 +0200 @@ -1,0 +2,5 @@ +Tue Jun 16 11:14:29 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.q1edTk/_old 2020-06-19 17:17:09.038841992 +0200 +++ /var/tmp/diff_new_pack.q1edTk/_new 2020-06-19 17:17:09.042842003 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# Copyright (c) 2020 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
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2020-05-11 13:35:41 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.2738 (New) Package is "ghc-primitive" Mon May 11 13:35:41 2020 rev:18 rq:801040 version:0.7.0.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2020-01-03 17:36:05.535268188 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.2738/ghc-primitive.changes 2020-05-11 13:36:09.456464029 +0200 @@ -1,0 +2,8 @@ +Wed May 6 06:54:13 UTC 2020 - psim...@suse.com + +- Update primitive to version 0.7.0.1. + ## Changes in version 0.7.0.1 + + * Allow building with GHC 8.12. + +--- Old: primitive-0.7.0.0.tar.gz New: primitive-0.7.0.1.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.s8jTzq/_old 2020-05-11 13:36:10.836466922 +0200 +++ /var/tmp/diff_new_pack.s8jTzq/_new 2020-05-11 13:36:10.840466930 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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 @@ -19,7 +19,7 @@ %global pkg_name primitive %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.0.0 +Version:0.7.0.1 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause ++ primitive-0.7.0.0.tar.gz -> primitive-0.7.0.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.7.0.0/Control/Monad/Primitive.hs new/primitive-0.7.0.1/Control/Monad/Primitive.hs --- old/primitive-0.7.0.0/Control/Monad/Primitive.hs2001-09-09 03:46:40.0 +0200 +++ new/primitive-0.7.0.1/Control/Monad/Primitive.hs2001-09-09 03:46:40.0 +0200 @@ -23,18 +23,9 @@ touch, evalPrim, unsafeInterleave, unsafeDupableInterleave, noDuplicate ) where -import GHC.Exts ( State#, RealWorld, noDuplicate#, touch# ) -import GHC.Base ( unsafeCoerce#, realWorld# ) -#if MIN_VERSION_base(4,4,0) -import GHC.Base ( seq# ) -#else -import Control.Exception (evaluate) -#endif -#if MIN_VERSION_base(4,2,0) +import GHC.Exts ( State#, RealWorld, noDuplicate#, touch# + , unsafeCoerce#, realWorld#, seq# ) import GHC.IO ( IO(..) ) -#else -import GHC.IOBase ( IO(..) ) -#endif import GHC.ST ( ST(..) ) import Control.Monad.Trans.Class (lift) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.7.0.0/changelog.md new/primitive-0.7.0.1/changelog.md --- old/primitive-0.7.0.0/changelog.md 2001-09-09 03:46:40.0 +0200 +++ new/primitive-0.7.0.1/changelog.md 2001-09-09 03:46:40.0 +0200 @@ -1,3 +1,7 @@ +## Changes in version 0.7.0.1 + + * Allow building with GHC 8.12. + ## Changes in version 0.7.0.0 * Remove `Addr` data type, lifted code should use `Ptr a` now diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.7.0.0/primitive.cabal new/primitive-0.7.0.1/primitive.cabal --- old/primitive-0.7.0.0/primitive.cabal 2001-09-09 03:46:40.0 +0200 +++ new/primitive-0.7.0.1/primitive.cabal 2001-09-09 03:46:40.0 +0200 @@ -1,6 +1,6 @@ Cabal-Version: 2.2 Name: primitive -Version:0.7.0.0 +Version:0.7.0.1 License:BSD-3-Clause License-File: LICENSE @@ -27,7 +27,8 @@ GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, - GHC == 8.8.1 + GHC == 8.8.2, + GHC == 8.10.1 Library Default-Language: Haskell2010 @@ -52,8 +53,8 @@ Data.Primitive.Internal.Compat Data.Primitive.Internal.Operations - Build-Depends: base >= 4.5 && < 4.14 - , ghc-prim >= 0.2 && < 0.6 + Build-Depends: base >= 4.5 && < 4.15 + , ghc-prim >= 0.2 && < 0.7 , transformers >= 0.2 && < 0.6 if !impl(ghc >= 8.0) Build-Depends: fail == 4.9.*
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2020-01-03 17:35:41 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.6675 (New) Package is "ghc-primitive" Fri Jan 3 17:35:41 2020 rev:17 rq:760294 version:0.7.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2019-12-27 13:56:19.452743996 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.6675/ghc-primitive.changes 2020-01-03 17:36:05.535268188 +0100 @@ -1,0 +2,9 @@ +Sun Dec 29 10:27:16 UTC 2019 - psim...@suse.com + +- Update primitive to version 0.7.0.0. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/primitive-0.7.0.0/src/changelog.md + +--- Old: primitive-0.6.4.0.tar.gz primitive.cabal New: primitive-0.7.0.0.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.zr2mqc/_old 2020-01-03 17:36:06.067268461 +0100 +++ /var/tmp/diff_new_pack.zr2mqc/_new 2020-01-03 17:36:06.075268465 +0100 @@ -17,17 +17,26 @@ %global pkg_name primitive +%bcond_with tests Name: ghc-%{pkg_name} -Version:0.6.4.0 +Version:0.7.0.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-semigroups-devel +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-transformers-compat-devel +%endif %description This package provides various primitive memory-related operations. @@ -44,7 +53,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -52,6 +60,9 @@ %install %ghc_lib_install +%check +%cabal_test + %post devel %ghc_pkg_recache ++ primitive-0.6.4.0.tar.gz -> primitive-0.7.0.0.tar.gz ++ 5219 lines of diff (skipped)
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2019-12-27 13:56:18 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new.6675 (New) Package is "ghc-primitive" Fri Dec 27 13:56:18 2019 rev:16 rq:759478 version:0.6.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2018-10-25 09:02:41.934638492 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new.6675/ghc-primitive.changes 2019-12-27 13:56:19.452743996 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 16:14:28 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.xBrXP7/_old 2019-12-27 13:56:20.036744277 +0100 +++ /var/tmp/diff_new_pack.xBrXP7/_new 2019-12-27 13:56:20.040744279 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# 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 @@ -22,7 +22,6 @@ Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause -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 Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal @@ -35,7 +34,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}
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2018-10-25 09:02:39 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Thu Oct 25 09:02:39 2018 rev:15 rq:643440 version:0.6.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2018-07-24 17:21:09.075205148 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2018-10-25 09:02:41.934638492 +0200 @@ -1,0 +2,5 @@ +Sat Oct 20 11:31:52 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.anVY6S/_old 2018-10-25 09:02:42.818637950 +0200 +++ /var/tmp/diff_new_pack.anVY6S/_new 2018-10-25 09:02:42.822637948 +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-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2018-07-24 17:21:07 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Tue Jul 24 17:21:07 2018 rev:14 rq:623833 version:0.6.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2018-05-30 12:26:51.387209808 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2018-07-24 17:21:09.075205148 +0200 @@ -1,0 +2,70 @@ +Wed Jul 18 14:26:36 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:31:39 UTC 2018 - psim...@suse.com + +- Update primitive to version 0.6.4.0. + ## Changes in version 0.6.4.0 + + * Introduce `Data.Primitive.PrimArray`, which offers types and function + for dealing with a `ByteArray` tagged with a phantom type variable for + tracking the element type. + + * Implement `isByteArrayPinned` and `isMutableByteArrayPinned`. + + * Add `Eq1`, `Ord1`, `Show1`, and `Read1` instances for `Array` and + `SmallArray`. + + * Improve the test suite. This includes having property tests for + typeclasses from `base` such as `Eq`, `Ord`, `Functor`, `Applicative`, + `Monad`, `IsList`, `Monoid`, `Foldable`, and `Traversable`. + + * Fix the broken `IsList` instance for `ByteArray`. The old definition + would allocate a byte array of the correct size and then leave the + memory unitialized instead of writing the list elements to it. + + * Fix the broken `Functor` instance for `Array`. The old definition + would allocate an array of the correct size with thunks for erroring + installed at every index. It failed to replace these thunks with + the result of the function applied to the elements of the argument array. + + * Fix the broken `Applicative` instances of `Array` and `SmallArray`. + The old implementation of `<*>` for `Array` failed to initialize + some elements but correctly initialized others in the resulting + `Array`. It is unclear what the old behavior of `<*>` was for + `SmallArray`, but it was incorrect. + + * Fix the broken `Monad` instances for `Array` and `SmallArray`. + + * Fix the implementation of `foldl1` in the `Foldable` instances for + `Array` and `SmallArray`. In both cases, the old implementation + simply returned the first element of the array and made no use of + the other elements in the array. + + * Fix the implementation of `mconcat` in the `Monoid` instance for + `SmallArray`. + + * Implement `Data.Primitive.Ptr`, implementations of `Ptr` functions + that require a `Prim` constraint instead of a `Storable` constraint. + + * Add `PrimUnlifted` instances for `TVar` and `MVar`. + + * Use `compareByteArrays#` for the `Eq` and `Ord` instances of + `ByteArray` when building with GHC 8.4 and newer. + + * Add `Prim` instances for lots of types in `Foreign.C.Types` and + `System.Posix.Types`. + + * Reexport `Data.Primitive.SmallArray` and `Data.Primitive.UnliftedArray` + from `Data.Primitive`. + + * Add fold functions and map function to `Data.Primitive.UnliftedArray`. + Add typeclass instances for `IsList`, `Ord`, and `Show`. + + * Add `defaultSetByteArray#` and `defaultSetOffAddr#` to + `Data.Primitive.Types`. + +--- Old: primitive-0.6.3.0.tar.gz New: primitive-0.6.4.0.tar.gz primitive.cabal Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.ptyoMg/_old 2018-07-24 17:21:10.543207030 +0200 +++ /var/tmp/diff_new_pack.ptyoMg/_new 2018-07-24 17:21:10.547207035 +0200 @@ -18,13 +18,14 @@ %global pkg_name primitive Name: ghc-%{pkg_name} -Version:0.6.3.0 +Version:0.6.4.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause 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 +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel @@ -45,6 +46,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ primitive-0.6.3.0
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2018-05-30 12:11:44 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Wed May 30 12:11:44 2018 rev:13 rq:607860 version:0.6.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2017-09-15 22:06:44.107194058 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2018-05-30 12:26:51.387209808 +0200 @@ -1,0 +2,13 @@ +Mon May 14 17:02:11 UTC 2018 - psim...@suse.com + +- Update primitive to version 0.6.3.0. + + * Add `PrimMonad` instances for `ContT`, `AccumT`, and `SelectT` from +`transformers` + + * Add `Eq`, `Ord`, `Show`, and `IsList` instances for `ByteArray` + + * Add `Semigroup` instances for `Array` and `SmallArray`. This allows +`primitive` to build on GHC 8.4 and later. + +--- Old: primitive-0.6.2.0.tar.gz primitive.cabal New: primitive-0.6.3.0.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.CKAuVS/_old 2018-05-30 12:26:51.951190468 +0200 +++ /var/tmp/diff_new_pack.CKAuVS/_new 2018-05-30 12:26:51.955190330 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# 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,14 +18,13 @@ %global pkg_name primitive Name: ghc-%{pkg_name} -Version:0.6.2.0 +Version:0.6.3.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause 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 -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel @@ -46,7 +45,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -61,7 +59,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc changelog.md ++ primitive-0.6.2.0.tar.gz -> primitive-0.6.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.6.2.0/Control/Monad/Primitive.hs new/primitive-0.6.3.0/Control/Monad/Primitive.hs --- old/primitive-0.6.2.0/Control/Monad/Primitive.hs2016-11-21 03:18:50.0 +0100 +++ new/primitive-0.6.3.0/Control/Monad/Primitive.hs2018-01-22 03:17:19.0 +0100 @@ -41,6 +41,7 @@ import Data.Monoid (Monoid) #endif +import Control.Monad.Trans.Cont ( ContT) import Control.Monad.Trans.Identity ( IdentityT (IdentityT) ) import Control.Monad.Trans.List ( ListT) import Control.Monad.Trans.Maybe( MaybeT ) @@ -54,6 +55,11 @@ import Control.Monad.Trans.Except ( ExceptT ) #endif +#if MIN_VERSION_transformers(0,5,3) +import Control.Monad.Trans.Accum( AccumT ) +import Control.Monad.Trans.Select ( SelectT ) +#endif + import qualified Control.Monad.Trans.RWS.Strictas Strict ( RWST ) import qualified Control.Monad.Trans.State.Strict as Strict ( StateT ) import qualified Control.Monad.Trans.Writer.Strict as Strict ( WriterT ) @@ -91,6 +97,10 @@ internal (IO p) = p {-# INLINE internal #-} +instance PrimMonad m => PrimMonad (ContT r m) where + type PrimState (ContT r m) = PrimState m + primitive = lift . primitive + {-# INLINE primitive #-} instance PrimMonad m => PrimMonad (IdentityT m) where type PrimState (IdentityT m) = PrimState m primitive = lift . primitive @@ -133,6 +143,22 @@ primitive = lift . primitive {-# INLINE primitive #-} #endif + +#if MIN_VERSION_transformers(0,5,3) +instance ( Monoid w + , PrimMonad m +# if !(MIN_VERSION_base(4,8,0)) + , Functor m +# endif + ) => PrimMonad (AccumT w m) where + type PrimState (AccumT w m) = PrimState m + primitive = lift . primitive + {-# INLINE primitive #-} +instance PrimMonad m => PrimMonad (SelectT r m) where + type PrimState (SelectT r m) = PrimState m + primitive = lift . primitive + {-# INLINE primitive #-} +#endif instance PrimMonad m => PrimMonad (Strict.StateT s m) wher
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2017-09-15 22:06:42 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Fri Sep 15 22:06:42 2017 rev:12 rq:525220 version:0.6.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2017-08-31 20:48:43.884569250 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2017-09-15 22:06:44.107194058 +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-primitive.spec ++ --- /var/tmp/diff_new_pack.eN7s7y/_old 2017-09-15 22:06:44.69787 +0200 +++ /var/tmp/diff_new_pack.eN7s7y/_new 2017-09-15 22:06:44.695111224 +0200 @@ -22,21 +22,20 @@ Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause -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 Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package provides various primitive memory-related operations. %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} @@ -62,11 +61,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-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2017-08-31 20:48:42 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Thu Aug 31 20:48:42 2017 rev:11 rq:513453 version:0.6.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2016-07-27 16:09:09.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2017-08-31 20:48:43.884569250 +0200 @@ -1,0 +2,5 @@ +Thu Jul 27 14:08:15 UTC 2017 - psim...@suse.com + +- Update to version 0.6.2.0 revision 1. + +--- Old: 1.cabal primitive-0.6.1.0.tar.gz New: primitive-0.6.2.0.tar.gz primitive.cabal Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.2FGLHn/_old 2017-08-31 20:48:44.864431709 +0200 +++ /var/tmp/diff_new_pack.2FGLHn/_new 2017-08-31 20:48:44.888428341 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# 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,20 +18,18 @@ %global pkg_name primitive Name: ghc-%{pkg_name} -Version:0.6.1.0 +Version:0.6.2.0 Release:0 Summary:Primitive memory-related operations 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 -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-transformers-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description This package provides various primitive memory-related operations. @@ -51,15 +49,12 @@ %setup -q -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache ++ primitive-0.6.1.0.tar.gz -> primitive-0.6.2.0.tar.gz ++ 1720 lines of diff (skipped) ++ primitive.cabal ++ Name: primitive Version:0.6.2.0 x-revision: 1 License:BSD3 License-File: LICENSE Author: Roman Leshchinskiy Maintainer: librar...@haskell.org Copyright: (c) Roman Leshchinskiy 2009-2012 Homepage: https://github.com/haskell/primitive Bug-Reports:https://github.com/haskell/primitive/issues Category: Data Synopsis: Primitive memory-related operations Cabal-Version: >= 1.10 Build-Type: Simple Description:This package provides various primitive memory-related operations. Extra-Source-Files: changelog.md Tested-With: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 Library Default-Language: Haskell2010 Other-Extensions: BangPatterns, CPP, DeriveDataTypeable, MagicHash, TypeFamilies, UnboxedTuples, UnliftedFFITypes Exposed-Modules: Control.Monad.Primitive Data.Primitive Data.Primitive.MachDeps Data.Primitive.Types Data.Primitive.Array Data.Primitive.ByteArray Data.Primitive.SmallArray Data.Primitive.UnliftedArray Data.Primitive.Addr Data.Primitive.MutVar Other-Modules: Data.Primitive.Internal.Compat Data.Primitive.Internal.Operations Build-Depends: base >= 4.5 && < 4.11 , ghc-prim >= 0.2 && < 0.6 , transformers >= 0.2 && < 0.6 Ghc-Options: -O2 -Wall Include-Dirs: cbits Install-Includes: primitive-memops.h includes: primitive-memops.h c-sources: cbits/primitive-memops.c cc-options: -O3 -fomit-frame-pointer -Wall if !os(solaris) cc-options: -ftree-vectorize if arch(i386) || arch(x86_64) cc-options: -msse2 test-suite test Default-Language: Haskell2010 hs-source-dirs: test main-is: main.hs type: exitcode-stdio-1.0 build-depends: base , ghc-prim , primitive ghc-options: -O2 source-repository head type: git location: https://github.com/haskell/primitive
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2016-07-27 16:08:54 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2015-09-30 05:52:28.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2016-07-27 16:09:09.0 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:30:05 UTC 2016 - psim...@suse.com + +- Update to version 0.6.1.0 revision 1 with cabal2obs. + +--- Old: _service New: 1.cabal Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.JjASGT/_old 2016-07-27 16:09:11.0 +0200 +++ /var/tmp/diff_new_pack.JjASGT/_new 2016-07-27 16:09:11.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,21 +17,21 @@ %global pkg_name primitive - -Name: ghc-primitive +Name: ghc-%{pkg_name} Version:0.6.1.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause Group: System/Libraries - -Url:http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - +Url:https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: BuildRequires: ghc-transformers-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# End cabal-rpm deps %description This package provides various primitive memory-related operations. @@ -39,25 +39,27 @@ %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other -Provides: %{name}-static = %{version}-%{release} +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + %build %ghc_lib_build + %install %ghc_lib_install + %post devel %ghc_pkg_recache @@ -70,5 +72,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc changelog.md %changelog ++ 1.cabal ++ Name: primitive Version:0.6.1.0 x-revision: 1 License:BSD3 License-File: LICENSE Author: Roman Leshchinskiy Maintainer: librar...@haskell.org Copyright: (c) Roman Leshchinskiy 2009-2012 Homepage: https://github.com/haskell/primitive Bug-Reports:https://github.com/haskell/primitive/issues Category: Data Synopsis: Primitive memory-related operations Cabal-Version: >= 1.10 Build-Type: Simple Description:This package provides various primitive memory-related operations. Extra-Source-Files: changelog.md Library Default-Language: Haskell2010 Other-Extensions: BangPatterns, CPP, DeriveDataTypeable, MagicHash, TypeFamilies, UnboxedTuples, UnliftedFFITypes Exposed-Modules: Control.Monad.Primitive Data.Primitive Data.Primitive.MachDeps Data.Primitive.Types Data.Primitive.Array Data.Primitive.ByteArray Data.Primitive.Addr Data.Primitive.MutVar Other-Modules: Data.Primitive.Internal.Compat Data.Primitive.Internal.Operations Build-Depends: base >= 4.3 && < 4.10 , ghc-prim >= 0.2 && < 0.6 , transformers >= 0.2 && < 0.6 Ghc-Options: -O2 -Wall Include-Dirs: cbits Install-Includes: primitive-memops.h includes: primitive-memops.h c-sources: cbits/primitive-memops.c cc-options: -O3 -fomit-frame-pointer -Wall if !os(solaris) cc-options: -ftree-vectorize if arch(i386) || arch(x86_64) cc-option
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2015-09-30 05:52:25 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2015-05-13 07:13:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2015-09-30 05:52:28.0 +0200 @@ -1,0 +2,9 @@ +Sun Sep 27 10:14:25 UTC 2015 - mimi...@gmail.com + +- update to 0.6.1.0 +* Use more appropriate types in internal memset functions, which prevents +overflows/segfaults on 64-bit systems. +* Fixed a warning on GHC 7.10 +* Worked around a -dcore-lint bug in GHC 7.6/7.7 + +--- Old: primitive-0.6.tar.gz New: primitive-0.6.1.0.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.TnLw2y/_old 2015-09-30 05:52:28.0 +0200 +++ /var/tmp/diff_new_pack.TnLw2y/_new 2015-09-30 05:52:28.0 +0200 @@ -19,7 +19,7 @@ %global pkg_name primitive Name: ghc-primitive -Version:0.6 +Version:0.6.1.0 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause ++ primitive-0.6.tar.gz -> primitive-0.6.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.6/Control/Monad/Primitive.hs new/primitive-0.6.1.0/Control/Monad/Primitive.hs --- old/primitive-0.6/Control/Monad/Primitive.hs2015-03-28 02:10:00.0 +0100 +++ new/primitive-0.6.1.0/Control/Monad/Primitive.hs2015-09-20 05:34:48.0 +0200 @@ -31,7 +31,9 @@ import GHC.ST ( ST(..) ) import Control.Monad.Trans.Class (lift) +#if !MIN_VERSION_base(4,8,0) import Data.Monoid (Monoid) +#endif import Control.Monad.Trans.Identity ( IdentityT) import Control.Monad.Trans.List ( ListT) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.6/Data/Primitive/Internal/Operations.hs new/primitive-0.6.1.0/Data/Primitive/Internal/Operations.hs --- old/primitive-0.6/Data/Primitive/Internal/Operations.hs 2015-03-28 02:10:00.0 +0100 +++ new/primitive-0.6.1.0/Data/Primitive/Internal/Operations.hs 2015-09-20 05:34:48.0 +0200 @@ -27,63 +27,64 @@ ) where import Data.Primitive.MachDeps (Word64_#, Int64_#) +import Foreign.C.Types import GHC.Prim foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word8" - setWord8Array# :: MutableByteArray# s -> Int# -> Int# -> Word# -> IO () + setWord8Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Word# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word16" - setWord16Array# :: MutableByteArray# s -> Int# -> Int# -> Word# -> IO () + setWord16Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Word# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word32" - setWord32Array# :: MutableByteArray# s -> Int# -> Int# -> Word# -> IO () + setWord32Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Word# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word64" - setWord64Array# :: MutableByteArray# s -> Int# -> Int# -> Word64_# -> IO () + setWord64Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Word64_# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word" - setWordArray# :: MutableByteArray# s -> Int# -> Int# -> Word# -> IO () + setWordArray# :: MutableByteArray# s -> CPtrdiff -> CSize -> Word# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word8" - setInt8Array# :: MutableByteArray# s -> Int# -> Int# -> Int# -> IO () + setInt8Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Int# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word16" - setInt16Array# :: MutableByteArray# s -> Int# -> Int# -> Int# -> IO () + setInt16Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Int# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word32" - setInt32Array# :: MutableByteArray# s -> Int# -> Int# -> Int# -> IO () + setInt32Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Int# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset_Word64" - setInt64Array# :: MutableByteArray# s -> Int# -> Int# -> Int64_# -> IO () + setInt64Array# :: MutableByteArray# s -> CPtrdiff -> CSize -> Int64_# -> IO () foreign import ccall unsafe "primitive-memops.h hsprimitive_memset
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2015-05-13 07:13:07 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2014-11-26 20:55:02.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2015-05-13 07:13:08.0 +0200 @@ -1,0 +2,14 @@ +Thu Apr 9 18:17:22 UTC 2015 - mimi...@gmail.com + +- update to 0.6 + + Split PrimMonad into two classes to allow automatic lifting of primitive +operations into monad transformers. The internal operation has moved +to the PrimBase class. + + Fixed the test suite on older GHCs + + Changed primitive_ to work around an oddity with GHC's code generation on +certain versions that led to side effects not happening when used in + conjunction with certain very unsafe IO performers. + + Allow primitive to build on GHC 7.9 + + Implement cloneArray and cloneMutableArray primitives +(with fall-back implementations for GHCs prior to version 7.2.1) +--- Old: primitive-0.5.2.1.tar.gz New: primitive-0.6.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.qvmyaf/_old 2015-05-13 07:13:09.0 +0200 +++ /var/tmp/diff_new_pack.qvmyaf/_new 2015-05-13 07:13:09.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -19,7 +19,7 @@ %global pkg_name primitive Name: ghc-primitive -Version:0.5.2.1 +Version:0.6 Release:0 Summary:Primitive memory-related operations License:BSD-3-Clause @@ -31,11 +31,11 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-transformers-devel %description This package provides various primitive memory-related operations. - %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other ++ primitive-0.5.2.1.tar.gz -> primitive-0.6.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.5.2.1/Control/Monad/Primitive.hs new/primitive-0.6/Control/Monad/Primitive.hs --- old/primitive-0.5.2.1/Control/Monad/Primitive.hs2014-02-19 20:25:03.0 +0100 +++ new/primitive-0.6/Control/Monad/Primitive.hs2015-03-28 02:10:00.0 +0100 @@ -1,4 +1,5 @@ {-# LANGUAGE CPP, MagicHash, UnboxedTuples, TypeFamilies #-} +{-# LANGUAGE FlexibleContexts, FlexibleInstances, UndecidableInstances #-} -- | -- Module : Control.Monad.Primitive @@ -13,7 +14,8 @@ module Control.Monad.Primitive ( PrimMonad(..), RealWorld, primitive_, - primToPrim, primToIO, primToST, + PrimBase(..), + liftPrim, primToPrim, primToIO, primToST, unsafePrimToPrim, unsafePrimToIO, unsafePrimToST, unsafeInlinePrim, unsafeInlineIO, unsafeInlineST, touch @@ -28,7 +30,27 @@ #endif import GHC.ST ( ST(..) ) --- | Class of primitive state-transformer monads +import Control.Monad.Trans.Class (lift) +import Data.Monoid (Monoid) + +import Control.Monad.Trans.Identity ( IdentityT) +import Control.Monad.Trans.List ( ListT) +import Control.Monad.Trans.Maybe( MaybeT ) +import Control.Monad.Trans.Error( ErrorT, Error) +import Control.Monad.Trans.Reader ( ReaderT ) +import Control.Monad.Trans.State( StateT ) +import Control.Monad.Trans.Writer ( WriterT ) +import Control.Monad.Trans.RWS ( RWST ) + +#if MIN_VERSION_transformers(0,4,0) +import Control.Monad.Trans.Except ( ExceptT ) +#endif + +import qualified Control.Monad.Trans.RWS.Strictas Strict ( RWST ) +import qualified Control.Monad.Trans.State.Strict as Strict ( StateT ) +import qualified Control.Monad.Trans.Writer.Strict as Strict ( WriterT ) + +-- | Class of monads which can perform primitive state-transformer actions class Monad m => PrimMonad m where -- | State token type type PrimState m @@ -36,7 +58,12 @@ -- | Execute a primitive operation primitive :: (State# (PrimState m) -> (# State# (PrimState m), a #)) -> m a - +-- | Class of primitive monads for state-transformer actions. +-- +-- Unlike 'PrimMonad', this typeclass requires that the @Monad@ be fully +-- expressed a
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2014-11-26 20:54:56 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2014-08-25 11:06:00.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2014-11-26 20:55:02.0 +0100 @@ -1,0 +2,6 @@ +Tue Sep 2 09:49:34 UTC 2014 - peter.tromm...@ohm-hochschule.de + +- update to 0.5.2.1 for Haskell Platform 2014.2.0.0 +- regenerate spec file + +--- Old: primitive-0.5.0.1.tar.gz New: primitive-0.5.2.1.tar.gz Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.RABGxM/_old 2014-11-26 20:55:04.0 +0100 +++ /var/tmp/diff_new_pack.RABGxM/_new 2014-11-26 20:55:04.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-primitive # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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,39 +18,36 @@ %global pkg_name primitive -%global common_summary Haskell wrappers for primitive operations - -%global common_description This package provides wrappers for primitive array operations from GHC.Prim. - Name: ghc-primitive -Version:0.5.0.1 +Version:0.5.2.1 Release:0 -Summary:%{common_summary} +Summary:Primitive memory-related operations License:BSD-3-Clause Group: System/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-build -# BEGIN cabal2spec Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# END cabal2spec %description -%{common_description} +This package provides various primitive memory-related operations. + %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Languages/Other -Requires: ghc-compiler -Requires(post): ghc-compiler -Requires(postun): ghc-compiler +Group: Development/Libraries/Other +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name} = %{version}-%{release} %description devel -%{common_description} -This package contains the development files. +This package provides the Haskell %{pkg_name} library development files. + %prep %setup -q -n %{pkg_name}-%{version} ++ primitive-0.5.0.1.tar.gz -> primitive-0.5.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.5.0.1/Control/Monad/Primitive.hs new/primitive-0.5.2.1/Control/Monad/Primitive.hs --- old/primitive-0.5.0.1/Control/Monad/Primitive.hs2012-10-10 23:47:01.0 +0200 +++ new/primitive-0.5.2.1/Control/Monad/Primitive.hs2014-02-19 20:25:03.0 +0100 @@ -1,4 +1,4 @@ -{-# LANGUAGE MagicHash, UnboxedTuples, TypeFamilies #-} +{-# LANGUAGE CPP, MagicHash, UnboxedTuples, TypeFamilies #-} -- | -- Module : Control.Monad.Primitive @@ -7,7 +7,7 @@ -- -- Maintainer : Roman Leshchinskiy -- Portability : non-portable --- +-- -- Primitive state-transformer monads -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.5.0.1/Data/Primitive/Addr.hs new/primitive-0.5.2.1/Data/Primitive/Addr.hs --- old/primitive-0.5.0.1/Data/Primitive/Addr.hs2012-10-10 23:47:01.0 +0200 +++ new/primitive-0.5.2.1/Data/Primitive/Addr.hs2014-02-19 20:25:03.0 +0100 @@ -7,7 +7,7 @@ -- -- Maintainer : Roman Leshchinskiy -- Portability : non-portable --- +-- -- Primitive operations on machine addresses -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/primitive-0.5.0.1/Data/Primitive/Array.hs new/primitive-0.5.2.1/Data/Primitive/Array.hs --- old/primitive-0.5.0.1/Data/Primitive/Array.hs 2012-10-10 23:47:01.0 +0200 +++ new/primitive-0.5.2.1/Data/Primitive/Array.hs 2014-02-19 20:25:03.0 +0100 @@ -1,4 +1,4 @@ -
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2014-08-25 11:04:42 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2013-08-01 15:32:24.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2014-08-25 11:06:00.0 +0200 @@ -1,0 +2,5 @@ +Sat Aug 23 00:17:46 UTC 2014 - peter.tromm...@ohm-hochschule.de + +- enable PowerPC builds + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.WwHsQ9/_old 2014-08-25 11:06:01.0 +0200 +++ /var/tmp/diff_new_pack.WwHsQ9/_new 2014-08-25 11:06:01.0 +0200 @@ -33,7 +33,6 @@ # BEGIN cabal2spec Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -ExclusiveArch: %{ix86} x86_64 %{ghc_arches} BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # END cabal2spec -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ghc-primitive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-primitive for openSUSE:Factory checked in at 2013-08-01 15:32:23 Comparing /work/SRC/openSUSE:Factory/ghc-primitive (Old) and /work/SRC/openSUSE:Factory/.ghc-primitive.new (New) Package is "ghc-primitive" Changes: --- /work/SRC/openSUSE:Factory/ghc-primitive/ghc-primitive.changes 2013-01-01 11:59:40.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-primitive.new/ghc-primitive.changes 2013-08-01 15:32:24.0 +0200 @@ -1,0 +2,5 @@ +Mon May 6 09:30:46 UTC 2013 - peter.tromm...@ohm-hochschule.de + +- more transparent packaging (fewer macros) + +--- Other differences: -- ++ ghc-primitive.spec ++ --- /var/tmp/diff_new_pack.iylwRS/_old 2013-08-01 15:32:24.0 +0200 +++ /var/tmp/diff_new_pack.iylwRS/_new 2013-08-01 15:32:24.0 +0200 @@ -1,8 +1,7 @@ # -# spec file for ghc-primitive +# spec file for package ghc-primitive # - -# Copyright (c) 2012 Herbert Graeber +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,55 +15,64 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %global pkg_name primitive %global common_summary Haskell wrappers for primitive operations %global common_description This package provides wrappers for primitive array operations from GHC.Prim. - Name: ghc-primitive Version:0.5.0.1 -Release:1 +Release:0 Summary:%{common_summary} - -Group: System/Libraries License:BSD-3-Clause +Group: System/Libraries + BuildRoot: %{_tmppath}/%{name}-%{version}-build # BEGIN cabal2spec -URL:http://hackage.haskell.org/package/%{pkg_name} +Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz ExclusiveArch: %{ix86} x86_64 %{ghc_arches} BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} +BuildRequires: ghc-rpm-macros # END cabal2spec %description %{common_description} +%package devel +Summary:Haskell %{pkg_name} library development files +Group: Development/Languages/Other +Requires: ghc-compiler +Requires(post): ghc-compiler +Requires(postun): ghc-compiler +Requires: %{name} = %{version}-%{release} + +%description devel +%{common_description} +This package contains the development files. %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install +%post devel +%ghc_pkg_recache -# devel subpackage -%ghc_devel_package - -%ghc_devel_description - - -%ghc_devel_post_postun - +%postun devel +%ghc_pkg_recache -%ghc_files LICENSE +%files -f %{name}.files +%defattr(-,root,root,-) +%doc LICENSE +%files devel -f %{name}-devel.files +%defattr(-,root,root,-) %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org