Hello community, here is the log from the commit of package ghc-StateVar for openSUSE:Factory checked in at 2018-05-30 12:14:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-StateVar (Old) and /work/SRC/openSUSE:Factory/.ghc-StateVar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-StateVar" Wed May 30 12:14:06 2018 rev:8 rq:607889 version:1.1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-StateVar/ghc-StateVar.changes 2017-09-15 21:14:40.547298924 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-StateVar.new/ghc-StateVar.changes 2018-05-30 12:23:01.454615432 +0200 @@ -1,0 +2,6 @@ +Mon May 14 17:02:11 UTC 2018 - [email protected] + +- Update StateVar to version 1.1.1.0. + * Track recent move of `Contravariant` to `base`. + +------------------------------------------------------------------- Old: ---- StateVar-1.1.0.4.tar.gz New: ---- StateVar-1.1.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-StateVar.spec ++++++ --- /var/tmp/diff_new_pack.c7fT5l/_old 2018-05-30 12:23:02.282590761 +0200 +++ /var/tmp/diff_new_pack.c7fT5l/_new 2018-05-30 12:23:02.282590761 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-StateVar # -# 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 StateVar Name: ghc-%{pkg_name} -Version: 1.1.0.4 +Version: 1.1.1.0 Release: 0 Summary: State variables License: BSD-3-Clause @@ -61,7 +61,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc CHANGELOG.md README.md ++++++ StateVar-1.1.0.4.tar.gz -> StateVar-1.1.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/StateVar-1.1.0.4/CHANGELOG.md new/StateVar-1.1.1.0/CHANGELOG.md --- old/StateVar-1.1.0.4/CHANGELOG.md 2016-04-13 08:21:12.000000000 +0200 +++ new/StateVar-1.1.1.0/CHANGELOG.md 2018-04-20 12:45:03.000000000 +0200 @@ -1,3 +1,7 @@ +1.1.1.0 +------- +* Track recent move of `Contravariant` to `base`. + 1.1.0.4 ------- * Corrected HasUpdate's superclass constraint. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/StateVar-1.1.0.4/LICENSE new/StateVar-1.1.1.0/LICENSE --- old/StateVar-1.1.0.4/LICENSE 2016-04-12 08:09:47.000000000 +0200 +++ new/StateVar-1.1.1.0/LICENSE 2018-03-21 14:31:18.000000000 +0100 @@ -1,5 +1,5 @@ Copyright (c) 2014-2015, Edward Kmett -Copyright (c) 2009-2016, Sven Panne +Copyright (c) 2009-2018, Sven Panne 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/StateVar-1.1.0.4/README.md new/StateVar-1.1.1.0/README.md --- old/StateVar-1.1.0.4/README.md 2015-10-06 10:20:10.000000000 +0200 +++ new/StateVar-1.1.1.0/README.md 2016-08-24 09:12:16.000000000 +0200 @@ -1 +1,4 @@ -[](https://hackage.haskell.org/package/StateVar) [](https://travis-ci.org/haskell-opengl/StateVar) +[](https://hackage.haskell.org/package/StateVar) +[](https://www.stackage.org/lts/package/StateVar) +[](https://www.stackage.org/nightly/package/StateVar) +[](https://travis-ci.org/haskell-opengl/StateVar) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/StateVar-1.1.0.4/StateVar.cabal new/StateVar-1.1.1.0/StateVar.cabal --- old/StateVar-1.1.0.4/StateVar.cabal 2016-04-12 08:09:29.000000000 +0200 +++ new/StateVar-1.1.1.0/StateVar.cabal 2018-04-20 12:43:27.000000000 +0200 @@ -1,12 +1,12 @@ name: StateVar -version: 1.1.0.4 +version: 1.1.1.0 synopsis: State variables description: This package contains state variables, which are references in the IO monad, like IORefs or parts of the OpenGL state. homepage: https://github.com/haskell-opengl/StateVar bug-reports: https://github.com/haskell-opengl/StateVar/issues -copyright: Copyright (C) 2014-2015 Edward A. Kmett, 2009-2016 Sven Panne +copyright: Copyright (C) 2014-2015 Edward A. Kmett, 2009-2018 Sven Panne license: BSD3 license-file: LICENSE author: Sven Panne and Edward Kmett @@ -20,8 +20,10 @@ GHC == 7.6.3 GHC == 7.8.4 GHC == 7.10.3 - GHC == 8.0.1 - GHC == 8.1 + GHC == 8.0.2 + GHC == 8.2.2 + GHC == 8.4.1 + GHC == 8.5.* cabal-version: >= 1.10 extra-source-files: README.md @@ -33,7 +35,7 @@ build-depends: base >= 4 && < 5, - stm >= 2.0 && < 2.5, + stm >= 2.2.0.1 && < 2.5, transformers >= 0.2 && < 0.6 default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/StateVar-1.1.0.4/src/Data/StateVar.hs new/StateVar-1.1.1.0/src/Data/StateVar.hs --- old/StateVar-1.1.0.4/src/Data/StateVar.hs 2016-04-12 08:25:40.000000000 +0200 +++ new/StateVar-1.1.1.0/src/Data/StateVar.hs 2018-04-20 11:18:21.000000000 +0200 @@ -10,7 +10,7 @@ -------------------------------------------------------------------------------- -- | -- Module : Data.StateVar --- Copyright : (c) Edward Kmett 2014-2015, Sven Panne 2009-2016 +-- Copyright : (c) Edward Kmett 2014-2015, Sven Panne 2009-2018 -- License : BSD3 -- -- Maintainer : Sven Panne <[email protected]> @@ -83,6 +83,9 @@ import Data.Typeable import Foreign.Ptr import Foreign.Storable +#if MIN_VERSION_base(4,12,0) +import Data.Functor.Contravariant +#endif -------------------------------------------------------------------- -- * StateVar @@ -114,6 +117,12 @@ -- permit a very limited range of value assignments, and do not report failure. data StateVar a = StateVar (IO a) (a -> IO ()) deriving Typeable +#if MIN_VERSION_base(4,12,0) +instance Contravariant SettableStateVar where + contramap f (SettableStateVar k) = SettableStateVar (k . f) + {-# INLINE contramap #-} +#endif + -- | Construct a 'StateVar' from two IO actions, one for reading and one for --- writing. makeStateVar @@ -227,7 +236,7 @@ instance HasUpdate (IORef a) a a where r $~ f = liftIO $ atomicModifyIORef r $ \a -> (f a,()) -#if __GLASGOW_HASKELL__ >= 706 +#if MIN_VERSION_base(4,6,0) r $~! f = liftIO $ atomicModifyIORef' r $ \a -> (f a,()) #else r $~! f = liftIO $ do
