import System.Process
import System.IO
main = do
	(_,Just hOut,_,_) <- createProcess(proc "ls" []){std_out = CreatePipe}
	f <- hReady hOut
	if f then hGetLine hOut >>= print
	     else putStrLn "Can't read"
Пишет can't read. Если в качестве std_out давать файл, то все пишется, а если CreatePipe, то не работает. Почему?


