Skip to content

Commit 74fb386

Browse files
committed
Clean up redundant CPP
1 parent 7c7a3ed commit 74fb386

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

zlib/Codec/Compression/Zlib/Stream.hsc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ import qualified Data.ByteString.Unsafe as B
112112
import Data.ByteString (ByteString)
113113
import Control.Applicative (Applicative(..))
114114
import Control.Monad (ap,liftM)
115-
#if MIN_VERSION_base(4,9,0)
116115
import qualified Control.Monad.Fail as Fail
117-
#endif
118116
import Control.Monad.ST.Strict
119117
import Control.Monad.ST.Unsafe
120118
import Control.Exception (assert)
@@ -360,16 +358,12 @@ instance Monad Stream where
360358
-- m >>= f = (m `thenZ` \a -> consistencyCheck `thenZ_` returnZ a) `thenZ` f
361359
(>>) = (*>)
362360

363-
#if !MIN_VERSION_base(4,9,0)
364-
fail = (finalise >>) . failZ
365-
#elif !MIN_VERSION_base(4,13,0)
361+
#if !MIN_VERSION_base(4,13,0)
366362
fail = Fail.fail
367363
#endif
368364

369-
#if MIN_VERSION_base(4,9,0)
370365
instance Fail.MonadFail Stream where
371366
fail = (finalise >>) . failZ
372-
#endif
373367

374368
returnZ :: a -> Stream a
375369
returnZ a = Z $ \_ inBuf outBuf outOffset outLength ->

zlib/test/Test.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ import qualified Data.ByteString as BS
2525
import qualified Data.ByteString.Internal as BS
2626
#endif
2727
import System.IO
28-
#if !(MIN_VERSION_base(4,6,0))
29-
import Prelude hiding (catch)
30-
#endif
31-
3228

3329
main :: IO ()
3430
main = defaultMain $

0 commit comments

Comments
 (0)