mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user