diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-09-13 13:39:48 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-09-13 13:39:48 -0400 |
commit | 6b209cd8578a4509e67dc187271f5f3a193acd97 (patch) | |
tree | 353b62e3fbe1e212e0af377722c3c3980a188826 /Utility/Process.hs | |
parent | 1e9b95d13b4bd3461add92096fc142ef5126eab9 (diff) |
merge hlint changes from propellor
Diffstat (limited to 'Utility/Process.hs')
-rw-r--r-- | Utility/Process.hs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Utility/Process.hs b/Utility/Process.hs index 205994811..c4882a014 100644 --- a/Utility/Process.hs +++ b/Utility/Process.hs @@ -172,7 +172,7 @@ createBackgroundProcess p a = a =<< createProcess p -- returns a transcript combining its stdout and stderr, and -- whether it succeeded or failed. processTranscript :: String -> [String] -> (Maybe String) -> IO (String, Bool) -processTranscript cmd opts input = processTranscript' cmd opts Nothing input +processTranscript cmd opts = processTranscript' cmd opts Nothing processTranscript' :: String -> [String] -> Maybe [(String, String)] -> (Maybe String) -> IO (String, Bool) processTranscript' cmd opts environ input = do @@ -378,11 +378,10 @@ createProcess p = do -- | Debugging trace for a CreateProcess. debugProcess :: CreateProcess -> IO () -debugProcess p = do - debugM "Utility.Process" $ unwords - [ action ++ ":" - , showCmd p - ] +debugProcess p = debugM "Utility.Process" $ unwords + [ action ++ ":" + , showCmd p + ] where action | piped (std_in p) && piped (std_out p) = "chat" |