SIO bug fix

Line breaks were missing when capturing stdout. (putStrLn acted like putStr.)
This commit is contained in:
hallgren
2012-09-26 18:13:47 +00:00
parent 1b359acbf2
commit 5e71c365d1

View File

@@ -58,7 +58,7 @@ captureSIO sio = do ch <- newChan
output <- fmap takeJust (getChanContents ch)
return (output,result)
where
takeJust (Just xs:ys) = xs++takeJust ys
takeJust (Just xs:ys) = xs++'\n':takeJust ys
takeJust _ = []
-- * Restricted accesss to arbitrary (potentially unsafe) IO operations