Skip to content

ioeGetErrorString

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@imag.fr
Trac metadata
Trac field Value
Version 5.04
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component None
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information