byline-1.1.1: Library for creating command-line interfaces (colors, menus, etc.)
Copyright This file is part of the package byline. It is subject to thelicense terms in the LICENSE file found in the top-leveldirectory of this distribution and at:https://github.com/pjones/bylineNo part of this package including this file may be copiedmodified propagated or distributed except according to theterms contained in the LICENSE file. BSD-2-Clause None Haskell2010

Byline.Exit

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

module Byline