HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulerelude-1.2.0.0Haskell2010

Relude.Lifted.Exit

SPDX-License-Identifier : MIT Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable

Lifted versions of functions that work with exit processes.

  • 4 values
  • Packagerelude-1.2.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceExit.hs
valueexitWith :: MonadIO m => ExitCode -> m a
#

Lifted version of exitWith.

Example1 expression
exitWith (ExitFailure 3)*** Exception: ExitFailure 3
Example1 expression
exitWith ExitSuccess*** Exception: ExitSuccess
valuedie :: MonadIO m => String -> m a
#

Lifted version of die.

Example1 expression
die "Goodbye!"Goodbye!*** Exception: ExitFailure 1