polymorphic return type for die

This commit is contained in:
Stephen Diehl
2017-07-17 16:33:12 +01:00
parent 459d82012b
commit eccb07f726
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,10 +35,10 @@ Source-Repository head
library
exposed-modules:
Protolude
Unsafe
other-modules:
Exceptions
Unsafe
Base
Applicative
Bool
+2 -2
View File
@@ -604,9 +604,9 @@ show x = toS (PBase.show x)
{-# SPECIALIZE show :: Show a => a -> String #-}
#if MIN_VERSION_base(4,8,0)
die :: Text -> IO ()
die :: Text -> IO a
die err = System.Exit.die (toS err)
#else
die :: Text -> IO ()
die :: Text -> IO a
die err = hPutStrLn stderr err >> exitFailure
#endif