
14 Sep
2006
14 Sep
'06
6:43 a.m.
Bulat Ziganshin
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.