On Tue, Jun 30, 2015 at 2:27 PM, Hiromi ISHII <konn.jinro@gmail.com> wrote:
quickCheck* functions writes results to stderr & stdout, but I
don't want them written to the app's original stdout/err.
(I'm using SafeHaskell features to avoid malicious code executed,
so don't worry about that :-))

So I want to execute I/O action hijacking stdout/err in a thread-safe manner.
For example, I need function like below:

Handles are process level, not thread level, in all supported operating systems. If something is writing to stderr then it is writing to a process level entity and there is no way to capture it at the level of a thread.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net