File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ import qualified Data.ByteString.Unsafe as B
112112import  Data.ByteString  (ByteString )
113113import  Control.Applicative  (Applicative  (.. ))
114114import  Control.Monad  (ap ,liftM )
115- #if  MIN_VERSION_base(4,9,0)
116115import  qualified  Control.Monad.Fail  as  Fail 
117- #endif 
118116import  Control.Monad.ST.Strict 
119117import  Control.Monad.ST.Unsafe 
120118import  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)
370365instance  Fail. MonadFail  Stream  where 
371366  fail    =  (finalise >> ) .  failZ
372- #endif 
373367
374368returnZ  ::  a  ->  Stream  a 
375369returnZ a =  Z  $  \ _ inBuf outBuf outOffset outLength -> 
Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ import qualified Data.ByteString      as BS
2525import  qualified  Data.ByteString.Internal  as  BS 
2626#endif 
2727import  System.IO 
28- #if  !(MIN_VERSION_base(4,6,0))
29- import  Prelude  hiding  (catch )
30- #endif 
31- 
3228
3329main  ::  IO   () 
3430main =  defaultMain $ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments