File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ import Data.ByteString (ByteString)
123
123
import Control.Applicative (Applicative (.. ))
124
124
#endif
125
125
import Control.Monad (ap ,liftM )
126
+ #if MIN_VERSION_base(4,9,0)
127
+ import qualified Control.Monad.Fail as Fail
128
+ #endif
126
129
#if __GLASGOW_HASKELL__ >= 702
127
130
#if __GLASGOW_HASKELL__ >= 708
128
131
import Control.Monad.ST.Strict
@@ -373,8 +376,21 @@ instance Monad Stream where
373
376
(>>=) = thenZ
374
377
-- m >>= f = (m `thenZ` \a -> consistencyCheck `thenZ_` returnZ a) `thenZ` f
375
378
(>>) = (*>)
379
+
380
+ #if !MIN_VERSION_base(4,8,0)
376
381
return = pure
382
+ #endif
383
+
384
+ #if !MIN_VERSION_base(4,9,0)
377
385
fail = (finalise >> ) . failZ
386
+ #elif !MIN_VERSION_base(4,13,0)
387
+ fail = Fail. fail
388
+ #endif
389
+
390
+ #if MIN_VERSION_base(4,9,0)
391
+ instance Fail. MonadFail Stream where
392
+ fail = (finalise >> ) . failZ
393
+ #endif
378
394
379
395
returnZ :: a -> Stream a
380
396
returnZ a = Z $ \ _ inBuf outBuf outOffset outLength ->
Original file line number Diff line number Diff line change
1
+ 0.6.2.1 TBD
2
+
3
+ * Add support for GHC 8.8 / base-4.13
4
+
1
5
0.6.2 Herbert Valerio Riedel <
[email protected] > March 2018
2
6
3
7
* New cabal flag 'pkg-config' for discovering 'zlib` via pkg-config(1) (#16)
Original file line number Diff line number Diff line change 1
1
name : zlib
2
- version : 0.6.2
2
+ version : 0.6.2.1
3
3
copyright : (c) 2006-2016 Duncan Coutts
4
4
license : BSD3
5
5
license-file : LICENSE
You can’t perform that action at this time.
0 commit comments