Text monoid. string must be equivalent to fromString and be a monoid
homomorphism, i.e. string mempty = mempty and
mappend (string x) (string y) = string (mappend x y).
Other operations must be monoid homomorphisms that are eqiuvalent (but
possibly faster) to the composition of string and the corresponding
embedding, e.g. text = string . unpack.
Methods
char :: Char -> pchar7 :: Char -> pPrint an ASCII character, can be faster than char.
string :: String -> pPrint a string.
string7 :: String -> pPrint an ASCII string, can be faster than string.
text :: Text -> pPrint a Text.
lazyText :: Text -> pPrint a lazy Text.
ascii :: ByteString -> pPrint an ASCII ByteString.
lazyAscii :: ByteString -> pPrint a lazy ASCII ByteString.
utf8 :: ByteString -> pPrint a UTF-8 ByteString.
lazyUtf8 :: ByteString -> pPrint a lazy UTF-8 ByteString
Instances7Printer, …
Printer StringDefined in text-printer-0.5.0.2 · Text.PrinterPrinter BuilderDefined in text-printer-0.5.0.2 · Text.PrinterPrinter AsciiBuilderDefined in text-printer-0.5.0.2 · Text.PrinterPrinter PrettyPrinterDefined in text-printer-0.5.0.2 · Text.PrinterPrinter StringBuilderDefined in text-printer-0.5.0.2 · Text.PrinterPrinter Utf8BuilderDefined in text-printer-0.5.0.2 · Text.PrinterPrinter p => Printer (LinePrinter p)Defined in text-printer-0.5.0.2 · Text.Printer