Bugs item #611512, was opened at 2002-09-19 10:17
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=611512&group_id=8032

Category: None
Group: 5.04
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ioeGetErrorString

Initial Comment:
>From my understanding the Haskell reports,
ioeGetErrorString 
should return the failure string. To quote:

  For "user" errors (those which are raised using
fail), the 
  string returned by ioeGetErrorString is the argument
that 
  was passed to fail

On version 5.04, compiled under SunOS, 
ioeGetErrorString seems to return the result of `show`ing
this string. Compiling and running:

>
> import IO
> 
> main = fail "foo\ngoo" `catch` (putStrLn .
ioeGetErrorString)
>

results in:

"foo\ngoo"

as opposed to:

foo
goo

Thanks,
Gordon
[EMAIL PROTECTED]

----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2002-09-19 12:37

Message:
Logged In: YES 
user_id=48280

Fixed in 5.04.1.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=611512&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to