From: Malcolm.Wallace@me.com Date: Fri, 11 Feb 2011 11:17:28 +0000 (+0000) Subject: Fix incorrect #ifdef for nhc98 X-Git-Url: http://git.megacz.com/?p=ghc-base.git;a=commitdiff_plain;h=275cc9920f3202d799187ad1662be9dad1199fbd Fix incorrect #ifdef for nhc98 --- diff --git a/System/IO/Error.hs b/System/IO/Error.hs index 65c2ea9..a026f33 100644 --- a/System/IO/Error.hs +++ b/System/IO/Error.hs @@ -130,7 +130,6 @@ import Data.Maybe (fromJust) import Control.Monad (MonadPlus(mplus)) #endif -#ifndef __NHC__ -- | The construct 'tryIOError' @comp@ exposes IO errors which occur within a -- computation, and which are not fully handled. -- @@ -141,6 +140,7 @@ tryIOError f = catch (do r <- f return (Right r)) (return . Left) +#ifndef __NHC__ {-# DEPRECATED try "Please use the new exceptions variant, Control.Exception.try" #-} -- | The 'try' function is deprecated. Please use the new exceptions -- variant, 'Control.Exception.try' from "Control.Exception", instead.