You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleMainwhereimportSystem.ProcessimportSystem.IOmain::IO()
main = test 1
test i =doprint i
withCreateProcess ((shell "echo x") {std_out =CreatePipe}) $\ _ (Just out) _ p ->do
hGetChar out -- hGetLine and hGetContents have the same effect. But the problem disappears when this line is removed!return()
test $ i +1