packages feed

quiver 0.0.0.9 → 0.0.0.10

raw patch · 2 files changed

+4/−4 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Control.Quiver.Internal: [Consume] :: a -> (a' -> P a a' b b' f r) -> (Producer b b' f r) -> P a a' b b' f r
- Control.Quiver.Internal: [Deliver] :: r -> P a a' b b' f r
- Control.Quiver.Internal: [Enclose] :: (f (P a a' b b' f r)) -> P a a' b b' f r
- Control.Quiver.Internal: [Produce] :: b -> (b' -> P a a' b b' f r) -> (Consumer a a' f r) -> P a a' b b' f r
- Control.Quiver.Internal: instance Applicative f => Applicative (P a a' b b' f)
- Control.Quiver.Internal: instance Functor f => Functor (P a a' b b' f)
- Control.Quiver.Internal: instance Monad f => Monad (P a a' b b' f)
+ Control.Quiver.Internal: Consume :: a -> (a' -> P a a' b b' f r) -> (Producer b b' f r) -> P a a' b b' f r
+ Control.Quiver.Internal: Deliver :: r -> P a a' b b' f r
+ Control.Quiver.Internal: Enclose :: (f (P a a' b b' f r)) -> P a a' b b' f r
+ Control.Quiver.Internal: Produce :: b -> (b' -> P a a' b b' f r) -> (Consumer a a' f r) -> P a a' b b' f r
+ Control.Quiver.Internal: instance GHC.Base.Applicative f => GHC.Base.Applicative (Control.Quiver.Internal.P a a' b b' f)
+ Control.Quiver.Internal: instance GHC.Base.Functor f => GHC.Base.Functor (Control.Quiver.Internal.P a a' b b' f)
+ Control.Quiver.Internal: instance GHC.Base.Monad f => GHC.Base.Monad (Control.Quiver.Internal.P a a' b b' f)
- Control.Quiver.SP: (>:>) :: b -> SP a b f e -> SP a b f e
+ Control.Quiver.SP: (>:>) :: b -> P a a' b b' f (SPResult e) -> P a a' b b' f (SPResult e)
- Control.Quiver.SP: (>>!) :: Monad f => SP a b f e -> (e -> SP a b f e') -> SP a b f e'
+ Control.Quiver.SP: (>>!) :: Monad f => P a a' b b' f (SPResult e) -> (e -> P a a' b b' f (SPResult e')) -> P a a' b b' f (SPResult e')

Files

quiver.cabal view
@@ -1,5 +1,5 @@ name:           quiver-version:        0.0.0.9+version:        0.0.0.10 synopsis:       Quiver finite stream processing library homepage:       https://github.com/zadarnowski/quiver category:       Control@@ -35,7 +35,7 @@ source-repository this   type:         git   location:     https://github.com/zadarnowski/quiver.git-  tag:          0.0.0.9+  tag:          0.0.0.10  library   hs-source-dirs:   src
src/Control/Quiver/SP.lhs view
@@ -78,7 +78,7 @@ > --   the processor 'p', deliverying 'SPIncomplete' if 'y' could > --   not be consumed by the downstream processor. -> (>:>) :: b -> SP a b f e -> SP a b f e+> (>:>) :: b -> P a a' b b' f (SPResult e) -> P a a' b b' f (SPResult e) > y >:> p = produce y (const p) (deliver SPIncomplete)  > -- | @p >>! k@ is equivalent to @p@, with any failures in @p@@@ -87,7 +87,7 @@ > --   'SPComplete' or is interrupted by the downstream processor, > --   deliverying 'SPIncomplete'. -> (>>!) :: Monad f => SP a b f e -> (e -> SP a b f e') -> SP a b f e'+> (>>!) :: Monad f => P a a' b b' f (SPResult e) -> (e -> P a a' b b' f (SPResult e')) -> P a a' b b' f (SPResult e') > p >>! k = p >>= maybe (deliver SPIncomplete) (maybe (deliver SPComplete) k)  > -- | @sppure f@ produces an infinite consumer/producer that