diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-04-21 20:29:15 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-04-21 20:35:56 +0200 |
commit | bcd989d13072a189b49d9393b0d4b1bbaede9d36 (patch) | |
tree | bbe2ed37bc86b45e65e535ce15084085094a32f8 /libraries/base/System/Exit.hs | |
parent | 4ab8fc55eb6119dbba2f487c5a01d30a7c6ae113 (diff) | |
download | haskell-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.hs | 2 |
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 |