Ormolu.Terminal
Contents
Term
Description
An abstraction for colorful output in terminal.
type Term = TermOutput () Source #
data ColorMode Source #
Whether to use colors and other features of ANSI terminals.
Constructors
Defined in Ormolu.Terminal
Methods
showsPrec :: Int -> ColorMode -> ShowS Source #
show :: ColorMode -> String Source #
showList :: [ColorMode] -> ShowS Source #
(==) :: ColorMode -> ColorMode -> Bool Source #
(/=) :: ColorMode -> ColorMode -> Bool Source #
runTerm Source #
Arguments
Color mode
Handle to print to
Run Term monad.
runTermPure :: Term -> Text Source #
bold :: Term -> Term Source #
Make the output bold text.
cyan :: Term -> Term Source #
Make the output cyan text.
green :: Term -> Term Source #
Make the output green text.
red :: Term -> Term Source #
Make the output red text.
put :: Text -> Term Source #
Output Text.
Text
putShow :: Show a => a -> Term Source #
Output a Show value.
Show
putOutputable :: Outputable a => a -> Term Source #
Output an Outputable value.
Outputable
newline :: Term Source #
Output a newline.