Hello community,
here is the log from the commit of package ghc-concurrent-output for
openSUSE:Factory checked in at 2017-03-20 17:06:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-concurrent-output (Old)
and /work/SRC/openSUSE:Factory/.ghc-concurrent-output.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-concurrent-output"
Mon Mar 20 17:06:30 2017 rev:5 rq:461615 version:1.7.9
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-concurrent-output/ghc-concurrent-output.changes
2016-10-22 13:20:14.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-concurrent-output.new/ghc-concurrent-output.changes
2017-03-20 17:06:31.447613784 +0100
@@ -1,0 +2,10 @@
+Mon Feb 20 08:42:44 UTC 2017 - [email protected]
+
+- Update to version 1.7.9 with cabal2obs.
+
+-------------------------------------------------------------------
+Mon Jan 9 06:33:49 UTC 2017 - [email protected]
+
+- Update to version 1.7.8 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
concurrent-output-1.7.7.tar.gz
New:
----
concurrent-output-1.7.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-concurrent-output.spec ++++++
--- /var/tmp/diff_new_pack.0VyOn6/_old 2017-03-20 17:06:32.199507617 +0100
+++ /var/tmp/diff_new_pack.0VyOn6/_new 2017-03-20 17:06:32.199507617 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-concurrent-output
#
-# 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,7 +18,7 @@
%global pkg_name concurrent-output
Name: ghc-%{pkg_name}
-Version: 1.7.7
+Version: 1.7.9
Release: 0
Summary: Ungarble output from several threads or commands
License: BSD-2-Clause
++++++ concurrent-output-1.7.7.tar.gz -> concurrent-output-1.7.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/concurrent-output-1.7.7/CHANGELOG
new/concurrent-output-1.7.9/CHANGELOG
--- old/concurrent-output-1.7.7/CHANGELOG 2016-09-06 19:48:00.000000000
+0200
+++ new/concurrent-output-1.7.9/CHANGELOG 2017-02-12 23:15:31.000000000
+0100
@@ -1,3 +1,16 @@
+concurrent-output (1.7.9) unstable; urgency=medium
+
+ * Allow lazy text to be used as an Outputable value, and as
+ the content of a Region.
+
+ -- Joey Hess <[email protected]> Sun, 12 Feb 2017 18:13:47 -0400
+
+concurrent-output (1.7.8) unstable; urgency=medium
+
+ * Update directory dep to allow 1.3.
+
+ -- Joey Hess <[email protected]> Tue, 20 Dec 2016 15:17:55 -0400
+
concurrent-output (1.7.7) unstable; urgency=medium
* Fix build on Windows.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/concurrent-output-1.7.7/System/Console/Concurrent/Internal.hs
new/concurrent-output-1.7.9/System/Console/Concurrent/Internal.hs
--- old/concurrent-output-1.7.7/System/Console/Concurrent/Internal.hs
2016-09-06 19:48:00.000000000 +0200
+++ new/concurrent-output-1.7.9/System/Console/Concurrent/Internal.hs
2017-02-12 23:15:31.000000000 +0100
@@ -28,6 +28,7 @@
import qualified System.Process as P
import qualified Data.Text as T
import qualified Data.Text.IO as T
+import qualified Data.Text.Lazy as L
import Control.Applicative
import Prelude
@@ -136,6 +137,11 @@
instance Outputable T.Text where
toOutput = id
+-- | Note that using a lazy Text as an Outputable value
+-- will buffer it all in memory.
+instance Outputable L.Text where
+ toOutput = toOutput . L.toStrict
+
instance Outputable String where
toOutput = toOutput . T.pack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/concurrent-output-1.7.7/System/Console/Regions.hs
new/concurrent-output-1.7.9/System/Console/Regions.hs
--- old/concurrent-output-1.7.7/System/Console/Regions.hs 2016-09-06
19:48:00.000000000 +0200
+++ new/concurrent-output-1.7.9/System/Console/Regions.hs 2017-02-12
23:15:31.000000000 +0100
@@ -114,6 +114,7 @@
import Data.String
import Data.Char
import qualified Data.Text as T
+import qualified Data.Text.Lazy as L
import qualified Data.Text.IO as T
import Data.Text (Text)
import Control.Monad
@@ -233,6 +234,10 @@
instance ToRegionContent Text where
toRegionContent = fromOutput
+-- | Note that using a lazy Text in a region will buffer it all in memory.
+instance ToRegionContent L.Text where
+ toRegionContent = fromOutput
+
fromOutput :: Outputable v => v -> RegionContent
fromOutput = RegionContent . pure . toOutput
@@ -287,7 +292,7 @@
-- | Runs the action with a new console region, closing the region when
-- the action finishes or on exception.
-withConsoleRegion :: (LiftRegion m, MonadIO m, MonadMask m) => RegionLayout ->
(ConsoleRegion -> m a) -> m a
+withConsoleRegion :: (MonadIO m, MonadMask m) => RegionLayout ->
(ConsoleRegion -> m a) -> m a
withConsoleRegion ly = bracketIO (openConsoleRegion ly) (closeConsoleRegion)
-- | Opens a new console region.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/concurrent-output-1.7.7/concurrent-output.cabal
new/concurrent-output-1.7.9/concurrent-output.cabal
--- old/concurrent-output-1.7.7/concurrent-output.cabal 2016-09-06
19:48:00.000000000 +0200
+++ new/concurrent-output-1.7.9/concurrent-output.cabal 2017-02-12
23:15:31.000000000 +0100
@@ -1,5 +1,5 @@
Name: concurrent-output
-Version: 1.7.7
+Version: 1.7.9
Cabal-Version: >= 1.8
License: BSD2
Maintainer: Joey Hess <[email protected]>
@@ -35,7 +35,7 @@
, async (>= 2.0 && < 2.2)
, stm (>= 2.0 && < 2.5)
, process (>= 1.1.0 && < 1.5.0)
- , directory (>= 1.2.0 && < 1.3.0)
+ , directory (>= 1.2.0 && < 1.4.0)
, transformers (>= 0.3.0 && < 0.6.0)
, exceptions (>= 0.6.0 && < 0.9.0)
, ansi-terminal (>= 0.6.0 && < 0.7.0)