use a more specific type for executeFile

Apparently the generic -> IO a type fails with some version of GHC.
Possibly due to System.Posix.Process.executeFile having a more specific
type.
This commit is contained in:
Joey Hess 2011-07-04 19:54:46 -04:00
parent c9a81fa841
commit e5ee6508dd

View file

@ -108,7 +108,7 @@ boolSystemEnv command params env = do
executeFile command True (toCommand params) env
{- executeFile with debug logging -}
executeFile :: FilePath -> Bool -> [String] -> Maybe [(String, String)] -> IO a
executeFile :: FilePath -> Bool -> [String] -> Maybe [(String, String)] -> IO ()
executeFile c path p e = do
debugM "Utility.executeFile" $
"Running: " ++ c ++ " " ++ show p ++ " " ++ maybe "" show e