Michael Abbott writes:
> Using GHC 2.02, where has
> try :: IO a -> Either IOError a
> got to?
>
> According to my copy of the "Standard Libraries for the Haskell
> Programming Language", Version 1.4, the IO library exports:
> hWaitForInput, try, bracket, bracket_.
>
> I can't find any of these functions in the GHC IO library!
Hi,
that's because they were added to the std libs after 2.02 was
released - the source-only 2.03 bugfix release has got them. You
can get at `try' though, it is named tryIO in 2.02:
IOBase.tryIO :: IO a -> IO (Either IOError a)
HTH,
--Sigbjorn