summaryrefslogtreecommitdiff
path: root/libraries/base/System/Exit.hs
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-04-21 20:29:15 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-04-21 20:35:56 +0200
commitbcd989d13072a189b49d9393b0d4b1bbaede9d36 (patch)
treebbe2ed37bc86b45e65e535ce15084085094a32f8 /libraries/base/System/Exit.hs
parent4ab8fc55eb6119dbba2f487c5a01d30a7c6ae113 (diff)
downloadhaskell-bcd989d13072a189b49d9393b0d4b1bbaede9d36.tar.gz
Generalise type of recently added System.Exit.die
This is a follow-up to 77ea2eb0ab36d1a (re #9016) which added `die` with a return type of `IO ()` even though all other functions in System.Exit have the more general return type `IO a`. It is assumed this was an oversight in the original proposal. Acked-by: Edward Kmett <ekmett@gmail.com> Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'libraries/base/System/Exit.hs')
-rw-r--r--libraries/base/System/Exit.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/System/Exit.hs b/libraries/base/System/Exit.hs
index 4f6eba629c..932cbfbd0f 100644
--- a/libraries/base/System/Exit.hs
+++ b/libraries/base/System/Exit.hs
@@ -79,5 +79,5 @@ exitSuccess = exitWith ExitSuccess
-- | Write given error message to `stderr` and terminate with `exitFailure`.
--
-- /Since: 4.7.1.0/
-die :: String -> IO ()
+die :: String -> IO a
die err = hPutStrLn stderr err >> exitFailure