htcc-0.0.0.1: The full scratch implementation of tiny C compiler (x86_64)
Copyright(c) roki 2019
LicenseMIT
Maintainerfalgon53@yahoo.co.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Htcc.Utils.Print

Description

Utilities of print

Synopsis

Shortcuts of print

putStrErr :: Text -> IO () Source #

Standard error output shortcut.

putStrLnErr :: Text -> IO () Source #

Standard error output shortcut (with new line).

err :: Text -> IO () Source #

Standard error output and exit shortcut.

putDocLn :: Doc -> IO () Source #

Execute putDoc by applying linebreak to <> at the end of given Doc

putDocErr :: Doc -> IO () Source #

The shortcut of hPutDoc stderr

putDocLnErr :: Doc -> IO () Source #

Execute putDocErr by applying linebreak to <> at the end of given Doc

errTxtDoc :: String -> Doc Source #

The Doc used to output an error message (String), it is shortcut of red . text

errCharDoc :: Char -> Doc Source #

The Doc used to output an error message (Char), it is shortcut of red. char

warnTxtDoc :: String -> Doc Source #

The Doc used to output an warning message (String), it is shortcut of magenta . text

warnCharDoc :: Char -> Doc Source #

The Doc used to output an warning message (Char), it is shortcut of magenta . char

locTxtDoc :: String -> Doc Source #

Doc used to output a message (String) about the location, such as the file name and its location, it is shortcut of bold . text

locCharDoc :: Char -> Doc Source #

Doc used to output a message (Char) about the location, such as the file name and its location, it is shortcut of bold . char