byline-1.0.0.0: Library for creating command-line interfaces (colors, menus, etc.)

CopyrightThis file is part of the package byline. It is subject to the
license terms in the LICENSE file found in the top-level
directory of this distribution and at:

https://github.com/pjones/byline

No part of this package including this file may be copied
modified propagated or distributed except according to the
terms contained in the LICENSE file.
LicenseBSD-2-Clause
Safe HaskellNone
LanguageHaskell2010

Byline.Exit

Contents

Description

 
Synopsis

Exiting with style

die :: (MonadIO m, ToStylizedText a) => a -> m b Source #

Exit the current process after printing a pretty error message.

This function is similar to die except that the name of the current process along with a Stylized error message is printed to the standard error handle before exiting with a failure code.

Since: 1.0.0.0

Warnings

warn :: (MonadIO m, ToStylizedText a) => a -> m () Source #

Print a message to standard error.

Unlike die, this function will not exit the current process.

Since: 1.0.0.0

Re-exports

module Byline