fix for non-GHC
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 4 May 2006 09:30:44 +0000 (09:30 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Thu, 4 May 2006 09:30:44 +0000 (09:30 +0000)
System/IO.hs

index 8982119..6f0b017 100644 (file)
@@ -407,6 +407,7 @@ hSetBinaryMode _ _ = return ()
 -- -----------------------------------------------------------------------------
 -- Utils
 
+#ifdef __GLASGOW_HASKELL__
 -- Copied here to avoid recursive dependency with Control.Exception
 bracket 
        :: IO a         -- ^ computation to run first (\"acquire resource\")
@@ -422,3 +423,4 @@ bracket before after thing =
     after a
     return r
  )
+#endif