Bulat Ziganshin <[EMAIL PROTECTED]> writes:

>>      out <- hGetContents o
>>      -- print out
>
>> How can I force hGetContents to be strict (or at least to completely
>> process the stream prior to the waitForProcess command)?
>
> return $! last out

You will still get into trouble if the command produces copious error
output.  See runCommand in
http://happs.org/HAppS/src/HAppS/Util/Common.hs 
for a GPL'd solution.
-- 
                                                        Feri.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to