Hello community, here is the log from the commit of package ghc-rio for openSUSE:Factory checked in at 2019-01-25 22:43:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-rio (Old) and /work/SRC/openSUSE:Factory/.ghc-rio.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-rio" Fri Jan 25 22:43:29 2019 rev:6 rq:667142 version:0.1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-rio/ghc-rio.changes 2018-12-10 12:29:48.486438822 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-rio.new.28833/ghc-rio.changes 2019-01-25 22:43:31.359216567 +0100 @@ -1,0 +2,16 @@ +Mon Dec 31 03:01:27 UTC 2018 - psim...@suse.com + +- Update rio to version 0.1.8.0. + ## 0.1.8.0 + + * Re-export `Control.Monad.State.modify`, `Control.Monad.State.modify'` and `Control.Monad.State.gets` in `RIO.State` + +------------------------------------------------------------------- +Fri Dec 28 03:00:59 UTC 2018 - psim...@suse.com + +- Update rio to version 0.1.7.0. + ## 0.1.7.0 + + * Addition of `textDisplay` to `Display` class. + +------------------------------------------------------------------- Old: ---- rio-0.1.6.0.tar.gz New: ---- rio-0.1.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-rio.spec ++++++ --- /var/tmp/diff_new_pack.AMCluP/_old 2019-01-25 22:43:31.907215891 +0100 +++ /var/tmp/diff_new_pack.AMCluP/_new 2019-01-25 22:43:31.911215886 +0100 @@ -19,7 +19,7 @@ %global pkg_name rio %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.1.6.0 +Version: 0.1.8.0 Release: 0 Summary: A standard library for Haskell License: MIT ++++++ rio-0.1.6.0.tar.gz -> rio-0.1.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/ChangeLog.md new/rio-0.1.8.0/ChangeLog.md --- old/rio-0.1.6.0/ChangeLog.md 2018-12-07 05:22:45.000000000 +0100 +++ new/rio-0.1.8.0/ChangeLog.md 2018-12-30 08:29:51.000000000 +0100 @@ -1,5 +1,13 @@ # Changelog for rio +## 0.1.8.0 + +* Re-export `Control.Monad.State.modify`, `Control.Monad.State.modify'` and `Control.Monad.State.gets` in `RIO.State` + +## 0.1.7.0 + +* Addition of `textDisplay` to `Display` class. + ## 0.1.6.0 * Changed `logUseColor` to default to `False` on Windows, even when verbose and on the terminal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/rio.cabal new/rio-0.1.8.0/rio.cabal --- old/rio-0.1.6.0/rio.cabal 2018-12-07 06:30:18.000000000 +0100 +++ new/rio-0.1.8.0/rio.cabal 2018-12-30 08:30:53.000000000 +0100 @@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.30.0. +-- This file has been generated from package.yaml by hpack version 0.31.1. -- -- see: https://github.com/sol/hpack -- --- hash: bbb48d8141804c3559dabe44ac2317e1d0fae65893cea408ee1fb4297e974f6a +-- hash: 03c9a11fb87d70a75dd9c78b679c652518ced81d54220e49b2e41637a463958b name: rio -version: 0.1.6.0 +version: 0.1.8.0 synopsis: A standard library for Haskell description: See README and Haddocks at <https://www.stackage.org/package/rio> category: Control diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/src/RIO/List.hs new/rio-0.1.8.0/src/RIO/List.hs --- old/rio-0.1.6.0/src/RIO/List.hs 2018-06-19 17:29:26.000000000 +0200 +++ new/rio-0.1.8.0/src/RIO/List.hs 2018-12-20 15:39:02.000000000 +0100 @@ -274,9 +274,9 @@ minimumMaybe = safeListCall Data.List.minimum -- | @since 0.1.3.0 -maximumByMaybe :: (Ord a, Foldable t) => (a -> a -> Ordering) -> t a -> Maybe a +maximumByMaybe :: (Foldable t) => (a -> a -> Ordering) -> t a -> Maybe a maximumByMaybe f = safeListCall (Data.List.maximumBy f) -- | @since 0.1.3.0 -minimumByMaybe :: (Ord a, Foldable t) => (a -> a -> Ordering) -> t a -> Maybe a +minimumByMaybe :: (Foldable t) => (a -> a -> Ordering) -> t a -> Maybe a minimumByMaybe f = safeListCall (Data.List.minimumBy f) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/src/RIO/Prelude/Display.hs new/rio-0.1.8.0/src/RIO/Prelude/Display.hs --- old/rio-0.1.6.0/src/RIO/Prelude/Display.hs 2018-03-19 13:49:09.000000000 +0100 +++ new/rio-0.1.8.0/src/RIO/Prelude/Display.hs 2018-12-27 19:06:38.000000000 +0100 @@ -42,7 +42,17 @@ -- -- @since 0.1.0.0 class Display a where + {-# MINIMAL display | textDisplay #-} + display :: a -> Utf8Builder + display = display . textDisplay + + -- | Display data as `Text`, which will also be used for `display` if it is + -- not overriden. + -- + -- @since 0.1.7.0 + textDisplay :: a -> Text + textDisplay = utf8BuilderToText . display -- | @since 0.1.0.0 instance Display Utf8Builder where diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/src/RIO/State.hs new/rio-0.1.8.0/src/RIO/State.hs --- old/rio-0.1.6.0/src/RIO/State.hs 2018-07-06 05:21:35.000000000 +0200 +++ new/rio-0.1.8.0/src/RIO/State.hs 2018-12-30 08:29:51.000000000 +0100 @@ -4,6 +4,9 @@ module RIO.State ( Control.Monad.State.MonadState (..) + , Control.Monad.State.gets + , Control.Monad.State.modify + , Control.Monad.State.modify' ) where import qualified Control.Monad.State diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rio-0.1.6.0/test/RIO/ListSpec.hs new/rio-0.1.8.0/test/RIO/ListSpec.hs --- old/rio-0.1.6.0/test/RIO/ListSpec.hs 2018-03-18 09:09:39.000000000 +0100 +++ new/rio-0.1.8.0/test/RIO/ListSpec.hs 2018-12-20 15:39:02.000000000 +0100 @@ -5,6 +5,12 @@ import RIO import qualified RIO.List as List +data TestType = TestType { testTypeContents :: Int } + deriving (Eq, Show) + +testTypeList :: [TestType] +testTypeList = [TestType { testTypeContents = 1 }, TestType { testTypeContents = 0 }] + spec :: Spec spec = do describe "dropPrefix" $ do @@ -13,3 +19,9 @@ describe "dropSuffix" $ do it "present" $ List.dropSuffix "bar" "foobar" `shouldBe` "foo" it "absent" $ List.dropSuffix "foo" "foobar" `shouldBe` "foobar" + describe "maximumByMaybe" $ do + it "should support elements that do not have an Ord instance" $ + List.maximumByMaybe (compare `on` testTypeContents) testTypeList `shouldBe` (Just TestType { testTypeContents = 1}) + describe "minimumByMaybe" $ do + it "should support elements that do not have an Ord instance" $ + List.minimumByMaybe (compare `on` testTypeContents) testTypeList `shouldBe` (Just TestType { testTypeContents = 0})