446N/ADescription : get the output from a childProcess
446N/ACopyright : (c) Dominik Luecke, Uni Bremen 2007
446N/ALicense : GPLv2 or higher
446N/AMaintainer : luecke@informatik.uni-bremen.de
446N/AStability : experimental
446N/Aget the output from a childProcess
446N/AparseIt :: ChildProcess -> (String -> Bool) -> IO String
446N/A ls <- parseItHelp cp isEnd [line]
446N/A return $ unlines $ reverse ls
446N/A-- | Helper function for parsing cp output
5073N/AparseItHelp :: ChildProcess -> (String -> Bool) -> [String] -> IO [String]
446N/AparseItHelp cp isEnd inT = do
4744N/A Just (ExitFailure _) -> return inT
4744N/A else parseItHelp cp isEnd out