record output to file

This commit is contained in:
Joey Hess 2013-12-09 15:22:53 -04:00
parent d5981949e0
commit 5017523183

View file

@ -116,6 +116,7 @@ getOutput cmd params env = do
putStrLn $ unwords [cmd, show params]
out@(s, ok) <- processTranscript' cmd params env Nothing
putStrLn $ unwords [cmd, "finished", show ok, "output size:", show (length s)]
writeFile (cmd ++ ".out") s
return out
runParser' :: Parser a -> String -> String -> a