RE: [Haskell-cafe] making the GHC Api not write to stderr

I've thought about that, but my specific problem is that I'm calling the
Haskell code compiled to a shared lib and then hPutStr is failing,
presumable because there is no valid stderr (and I would image also no stdin
or out).
So in order for me to use that method I would have to create a new file
handle and direct stderr to that. Or somehow create a fake Handle and pass
it that.
Or another alternative is on the side where I call the lib, create and
attach some hidden console to the process and have it write there.
But that all seems like a hackish way out, It would be best if the API just
allowed me to turn off this behavior of writing to stderr.
From: Jean-Denis Koeck [mailto:jdkoeck@gmail.com]
Sent: Thursday, May 20, 2010 21:59
To: Phyx
Subject: Re: [Haskell-cafe] making the GHC Api not write to stderr
Maybe this
<http://nominolo.blogspot.com/2010/04/haskell-tip-redirect-stdout-in-haskell
.html> could help you ?
2010/5/20 Phyx
participants (1)
-
Phyx