polymorphic return type for die
This commit is contained in:
+1
-1
@@ -35,10 +35,10 @@ Source-Repository head
|
|||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Protolude
|
Protolude
|
||||||
|
Unsafe
|
||||||
|
|
||||||
other-modules:
|
other-modules:
|
||||||
Exceptions
|
Exceptions
|
||||||
Unsafe
|
|
||||||
Base
|
Base
|
||||||
Applicative
|
Applicative
|
||||||
Bool
|
Bool
|
||||||
|
|||||||
+2
-2
@@ -604,9 +604,9 @@ show x = toS (PBase.show x)
|
|||||||
{-# SPECIALIZE show :: Show a => a -> String #-}
|
{-# SPECIALIZE show :: Show a => a -> String #-}
|
||||||
|
|
||||||
#if MIN_VERSION_base(4,8,0)
|
#if MIN_VERSION_base(4,8,0)
|
||||||
die :: Text -> IO ()
|
die :: Text -> IO a
|
||||||
die err = System.Exit.die (toS err)
|
die err = System.Exit.die (toS err)
|
||||||
#else
|
#else
|
||||||
die :: Text -> IO ()
|
die :: Text -> IO a
|
||||||
die err = hPutStrLn stderr err >> exitFailure
|
die err = hPutStrLn stderr err >> exitFailure
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user