Re: IOError

2003-06-12 Thread Wolfgang Jeltsch
| isEOFError error > -> do >| otherwise > -> do > Right result > -> do Ups, I overlooked this. What I really wanted was: case t of Left error | isEOFError error ->

Re: IOError

2003-06-12 Thread Dean Herington
On Thu, 12 Jun 2003, Wolfgang Jeltsch wrote: > On Thursday, 2003-06-12, 18:01, CEST, Filip wrote: > > Hi, > > > > I wrote something like "let t = try (hGetLine h1)" and I would like to check > > is it EOFError or not. How can I do this ?? > > > > Thanks > > Hello, > > the above code assigns the

Re: IOError

2003-06-12 Thread Wolfgang Jeltsch
On Thursday, 2003-06-12, 18:01, CEST, Filip wrote: > Hi, > > I wrote something like "let t = try (hGetLine h1)" and I would like to check > is it EOFError or not. How can I do this ?? > > Thanks Hello, the above code assigns the I/O action try (hGetLine h1) to t. I suppose you want to assign

IOError

2003-06-12 Thread Filip
Hi, I wrote something like "let t = try (hGetLine h1)" and I would like to check is it EOFError or not. How can I do this ?? Thanks ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell