CPP-guard hiding of catch from Prelude
authorBen Gamari <ben@smart-cactus.org>
Thu, 9 Feb 2017 00:17:54 +0000 (19:17 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 9 Feb 2017 00:17:54 +0000 (19:17 -0500)
Prelude no longer exports catch, resulting in a warning which kills the GHC
build due to -Werror.

Data/ByteString.hs

index d23ffb6..79b96d5 100644 (file)
@@ -217,7 +217,11 @@ import Prelude hiding           (reverse,head,tail,last,init,null
                                 ,scanl,scanl1,scanr,scanr1
                                 ,readFile,writeFile,appendFile,replicate
                                 ,getContents,getLine,putStr,putStrLn,interact
-                                ,zip,zipWith,unzip,notElem,catch)
+                                ,zip,zipWith,unzip,notElem
+#if !MIN_VERSION_base(4,6,0)
+                                ,catch
+#endif
+                                )
 
 #if MIN_VERSION_base(4,7,0)
 import Data.Bits                (finiteBitSize, shiftL, (.|.), (.&.))