darkplaces-text-0.1: Parser for darkplaces colorful text

Safe HaskellNone
LanguageHaskell2010

DarkPlaces.Text

Synopsis

Documentation

newtype DPText

Constructors

DPText [DPTextToken] 

class ToText a where

Methods

toText :: a -> Text

stripColors :: DPText -> DPText

Removes colors from DPText

putStrUtf :: DPText -> IO ()

prints DPText to console using utf8 encoding

putStrLnUtf :: DPText -> IO ()

same as putStrUtf but with newline break at the end