pipes 4.3.11 → 4.3.12
raw patch · 3 files changed
+16/−1 lines, 3 files
Files
- CHANGELOG.md +9/−0
- pipes.cabal +1/−1
- src/Pipes/Internal.hs +6/−0
CHANGELOG.md view
@@ -1,3 +1,12 @@+4.3.12++* Fix space leak introduced in version 4.3.10+ * This leak primarily affects the use of `forever`++4.3.11++* Fix documentation for `scanM`+ 4.3.10 * Relax `Monad` constraints to `Functor`
pipes.cabal view
@@ -1,5 +1,5 @@ Name: pipes-Version: 4.3.11+Version: 4.3.12 Cabal-Version: >= 1.10 Build-Type: Simple Tested-With: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1
src/Pipes/Internal.hs view
@@ -90,6 +90,12 @@ Respond b fb' -> Respond b (\b' -> go (fb' b')) M m -> M (go <$> m) Pure f -> fmap f px+ l *> r = go l where+ go p = case p of+ Request a' fa -> Request a' (\a -> go (fa a ))+ Respond b fb' -> Respond b (\b' -> go (fb' b'))+ M m -> M (go <$> m)+ Pure _ -> r instance Functor m => Monad (Proxy a' a b' b m) where return = pure