packages feed

simple-pipe 0.0.0.28 → 0.0.0.29

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~basedep ~monad-controlPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, monad-control

API changes (from Hackage documentation)

- Data.Pipe.Lazy: instance PipeLazy Pipe
+ Data.Pipe.Lazy: instance Data.Pipe.Lazy.PipeLazy Data.Pipe.Core.Pipe
- Data.Pipe: class PipeClass p where p finalize f = p `onBreak` f `onDone` f
+ Data.Pipe: class PipeClass p where p `finalize` f = p `onBreak` f `onDone` f

Files

simple-pipe.cabal view
@@ -2,7 +2,7 @@ cabal-version:	>= 1.8  name:		simple-pipe-version:	0.0.0.28+version:	0.0.0.29 stability:	Experimental author:		Yoshikuni Jujo <PAF01143@nifty.ne.jp> maintainer:	Yoshikuni Jujo <PAF01143@nifty.ne.jp>@@ -80,7 +80,7 @@ source-repository	this     type:	git     location:	git://github.com/YoshikuniJujo/simple-pipe.git-    tag:	simple-pipe-0.0.0.28+    tag:	simple-pipe-0.0.0.29  library     hs-source-dirs:	src@@ -91,7 +91,7 @@     other-modules:         Data.Pipe.Core     build-depends:-        base == 4.*, monad-control == 0.3.*, lifted-base == 0.2.*,+        base == 4.*, monad-control == 1.0.*, lifted-base == 0.2.*,         monads-tf == 0.1.*, bytestring == 0.10.*, transformers-base == 0.4.*,         stm == 2.4.*     ghc-options:	-Wall
src/Data/Pipe/Lazy.hs view
@@ -15,10 +15,10 @@ instance PipeLazy Pipe where toLazy = toLazyP  toLazyP :: MonadBaseControl IO m => Pipe i o m r -> m [o]-toLazyP (Ready f o p) = (o :) `liftM` unsafeInterleaveIO (toLazyP p)-toLazyP (Need f p) = toLazyP $ p Nothing-toLazyP (Done f r) = return []-toLazyP (Make f p) = toLazyP =<< p+toLazyP (Ready _ o p) = (o :) `liftM` unsafeInterleaveIO (toLazyP p)+toLazyP (Need _ p) = toLazyP $ p Nothing+toLazyP (Done _ _) = return []+toLazyP (Make _ p) = toLazyP =<< p  unsafeInterleaveIO :: MonadBaseControl IO m => m a -> m a unsafeInterleaveIO m = control $ \runInIO -> U.unsafeInterleaveIO (runInIO m)