We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a6885 commit 85f2d95Copy full SHA for 85f2d95
Codec/Compression/Zlib/Stream.hsc
@@ -362,14 +362,15 @@ instance Functor Stream where
362
fmap = liftM
363
364
instance Applicative Stream where
365
- pure = return
+ pure = returnZ
366
(<*>) = ap
367
+ (*>) = thenZ_
368
369
instance Monad Stream where
370
(>>=) = thenZ
371
-- m >>= f = (m `thenZ` \a -> consistencyCheck `thenZ_` returnZ a) `thenZ` f
- (>>) = thenZ_
372
- return = returnZ
+ (>>) = (*>)
373
+ return = pure
374
fail = (finalise >>) . failZ
375
376
returnZ :: a -> Stream a
0 commit comments