Copyright | (c) Henry J. Wylde, 2015 |
---|---|
License | BSD3 |
Maintainer | public@hjwylde.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Extra exit utilities.
- panic :: (MonadError ExitCode m, MonadIO m, MonadLogger m) => String -> m a
- panic_ :: (MonadIO m, MonadLogger m) => String -> m a
- runPanic :: MonadIO m => ExceptT ExitCode m a -> m a
Exiting
panic :: (MonadError ExitCode m, MonadIO m, MonadLogger m) => String -> m a Source
Panics, logging the error to stderr and exiting fast with 128.
panic_ :: (MonadIO m, MonadLogger m) => String -> m a Source
Panics, logging the error to stderr and exiting fast with 128.
Rather than exiting fast using a MonadError
, this method uses exitWith
(panic_ = runPanic . panic
).