[Haskell-cafe] How to Hijack stdin,err,out, thread safely?

Roman Cheplyaka roma at ro-che.info
Tue Jun 30 19:02:10 UTC 2015

On 30/06/15 21:27, Hiromi ISHII wrote:
> Hi,
> I'm currently writing a web app to check the spec of input code
> usging QuickCheck.
> 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 :-))

It's not clear from your email whether you are concerned about the
output of QuickCheck itself or the functions you're testing.

In the former case, there is a way to get the output of QuickCheck as a
String without printing it. Take a look at tasty-quickcheck's code for
an example.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150630/2bdc822e/attachment.sig>

More information about the Haskell-Cafe mailing list