Safe Haskell | None |
---|---|
Language | Haskell2010 |
An abstraction for colorful output in terminal.
Synopsis
- data Term a
- data ColorMode
- runTerm :: Term a -> ColorMode -> Handle -> IO a
- bold :: Term a -> Term a
- cyan :: Term a -> Term a
- green :: Term a -> Term a
- red :: Term a -> Term a
- put :: Text -> Term ()
- putS :: String -> Term ()
- putSrcSpan :: SrcSpan -> Term ()
- putRealSrcSpan :: RealSrcSpan -> Term ()
- newline :: Term ()
The Term
monad
Whether to use colors and other features of ANSI terminals.
Run Term
monad.
Styling
Printing
putRealSrcSpan :: RealSrcSpan -> Term () Source #
Output a RealSrcSpan
.