forked from GitHub/gf-core
SIO bug fix
Line breaks were missing when capturing stdout. (putStrLn acted like putStr.)
This commit is contained in:
@@ -58,7 +58,7 @@ captureSIO sio = do ch <- newChan
|
|||||||
output <- fmap takeJust (getChanContents ch)
|
output <- fmap takeJust (getChanContents ch)
|
||||||
return (output,result)
|
return (output,result)
|
||||||
where
|
where
|
||||||
takeJust (Just xs:ys) = xs++takeJust ys
|
takeJust (Just xs:ys) = xs++'\n':takeJust ys
|
||||||
takeJust _ = []
|
takeJust _ = []
|
||||||
|
|
||||||
-- * Restricted accesss to arbitrary (potentially unsafe) IO operations
|
-- * Restricted accesss to arbitrary (potentially unsafe) IO operations
|
||||||
|
|||||||
Reference in New Issue
Block a user