[ ghc-Bugs-611512 ] ioeGetErrorString

noreply at sourceforge.net noreply at sourceforge.net
Thu Sep 19 06:17:45 EDT 2002


Bugs item #611512, was opened at 2002-09-19 03: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: Open
Resolution: None
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
gordon.pace at imag.fr

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=611512&group_id=8032



More information about the Glasgow-haskell-bugs mailing list