Anonymous avatar Anonymous committed 86c5e1a

ghc 7.5 removed catch from Prelude

Comments (0)

Files changed (4)

     ) where
 
 import Data.Text (Text)
-import Prelude hiding (appendFile, catch, getContents, getLine, interact,
+import Prelude hiding (appendFile,
+#if !MIN_VERSION_base(4,6,0)
+                       catch,
+#endif
+                       getContents, getLine, interact,
                        putStr, putStrLn, readFile, writeFile)
 import System.IO (Handle, IOMode(..), hPutChar, openFile, stdin, stdout,
                   withFile)

Data/Text/IO/Internal.hs

                       withRawBuffer, writeCharBuf)
 import GHC.IO.Handle.Internals (ioe_EOF, readTextDevice, wantReadableHandle_)
 import GHC.IO.Handle.Types (Handle__(..), Newline(..))
+#if !MIN_VERSION_base(4,6,0)
 import Prelude hiding (catch)
+#endif
 import System.IO (Handle)
 import System.IO.Error (isEOFError)
 import qualified Data.Text as T

Data/Text/Lazy/IO.hs

     ) where
 
 import Data.Text.Lazy (Text)
-import Prelude hiding (appendFile, catch, getContents, getLine, interact,
+import Prelude hiding (appendFile,
+#if !MIN_VERSION_base(4,6,0)
+                       catch,
+#endif
+                       getContents, getLine, interact,
                        putStr, putStrLn, readFile, writeFile)
 import System.IO (Handle, IOMode(..), hPutChar, openFile, stdin, stdout,
                   withFile)

tests/tests/src/Data/Text/Tests/Properties.hs

 import Data.Text.Search (indices)
 import Data.Word (Word8, Word16, Word32)
 import Numeric (showHex)
-import Prelude hiding (catch, replicate)
+import Prelude hiding (
+#if !MIN_VERSION_base(4,6,0)
+  catch,
+#endif
+  replicate)
 import Test.Framework (Test, testGroup)
 import Test.Framework.Providers.QuickCheck2 (testProperty)
 import qualified Data.Bits as Bits (shiftL, shiftR)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.