Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains functions for colorful printing into terminal.
Synopsis
- data Color
- putStrFlush :: Text -> IO ()
- beautyPrint :: [IO ()] -> Text -> IO ()
- boldCode :: String
- blueCode :: String
- bold :: IO ()
- boldText :: Text -> IO ()
- boldDefault :: Text -> IO ()
- italic :: IO ()
- redCode :: String
- reset :: IO ()
- resetCode :: String
- prompt :: IO Text
- setColor :: Color -> IO ()
- successMessage :: Text -> IO ()
- warningMessage :: Text -> IO ()
- errorMessage :: Text -> IO ()
- infoMessage :: Text -> IO ()
- skipMessage :: Text -> IO ()
Documentation
ANSI colors: come in various intensities, which are controlled by
ColorIntensity
putStrFlush :: Text -> IO () Source #
Explicit flush ensures prompt messages are in the correct order on all systems.
beautyPrint :: [IO ()] -> Text -> IO () Source #
Takes list of formatting options, prints text using this format options.
boldDefault :: Text -> IO () Source #
successMessage :: Text -> IO () Source #
warningMessage :: Text -> IO () Source #
errorMessage :: Text -> IO () Source #
infoMessage :: Text -> IO () Source #
skipMessage :: Text -> IO () Source #