Trying to get the hang of exceptions...
I would expect this program:
module Main where
import Control.Exception hiding (GHC.Prelude.catch)
temp :: IO ()
temp = do
putStrLn line 1
ioError (AssertionFailed my temp)
handler :: Exception - IO ()
handler e = putStrLn (exception: ++
On Mon, Jul 21, 2003 at 02:12:02PM +0100, Bayley, Alistair wrote:
module Main where
import Control.Exception hiding (GHC.Prelude.catch)
This hiding clause is illegal. But anyway what you want is
import Prelude hiding (catch)
import Control.Exception
Prelude.catch only catches Haskell 98