diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-19 17:08:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-19 17:08:57 -0400 |
commit | ac540f569f68c910f037e91167f5bd21fb2597f3 (patch) | |
tree | ea10b56d99c16e80b3ad84e0f0120ccca5b2f8f4 /Utility/Misc.hs | |
parent | 75dc5d235e0da1517d6098cd1694286d627fb4b7 (diff) |
merge with git-repair
Diffstat (limited to 'Utility/Misc.hs')
-rw-r--r-- | Utility/Misc.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Utility/Misc.hs b/Utility/Misc.hs index a2c9c8184..4b0e9a1e4 100644 --- a/Utility/Misc.hs +++ b/Utility/Misc.hs @@ -15,6 +15,7 @@ import Foreign import Data.Char import Data.List import Control.Applicative +import System.Exit #ifndef mingw32_HOST_OS import System.Posix.Process (getAnyProcessStatus) import Utility.Exception @@ -136,3 +137,7 @@ reapZombies = do #else reapZombies = return () #endif + +exitBool :: Bool -> IO a +exitBool False = exitFailure +exitBool True = exitSuccess |