Copyright | (c) 2020 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Functions to output formatted Text
directly to terminal.
Synopsis
- redMessage :: Text -> IO ()
- greenMessage :: Text -> IO ()
- blueMessage :: Text -> IO ()
- yellowMessage :: Text -> IO ()
- blackMessage :: Text -> IO ()
- whiteMessage :: Text -> IO ()
- magentaMessage :: Text -> IO ()
- cyanMessage :: Text -> IO ()
- successMessage :: Text -> IO ()
- infoMessage :: Text -> IO ()
- skipMessage :: Text -> IO ()
- warningMessage :: Text -> IO ()
- errorMessage :: Text -> IO ()
- boldMessage :: Text -> IO ()
- italicMessage :: Text -> IO ()
- formattedMessage :: [Text] -> Text -> IO ()
Color
Direct
Aliases
successMessage :: Text -> IO () Source #
Alias for greenMessage
that specifies message severity.
infoMessage :: Text -> IO () Source #
Alias for blueMessage
that specifies message severity.
skipMessage :: Text -> IO () Source #
Alias for cyanMessage
that specifies message severity.
warningMessage :: Text -> IO () Source #
Alias for yellowMessage
that specifies message severity.
errorMessage :: Text -> IO () Source #
Alias for redMessage
that specifies message severity.
Emphasis
General purpose
formattedMessage :: [Text] -> Text -> IO () Source #
Print message with specified list of formatting options. See
formatWith
for more details. If this function takes empty
list, no formatting is applied.