Safe Haskell | None |
---|---|
Language | Haskell2010 |
DarkPlaces.Text
- newtype DPText = DPText [DPTextToken]
- data DPTextToken
- = SimpleColor Int
- | HexColor Int
- | DPString Text
- class ToText a where
- toText :: a -> Text
- parseDPText :: ByteString -> DPText
- stripColors :: DPText -> DPText
- hPutStrUtf :: Handle -> DPText -> IO ()
- hPutStrLnUtf :: Handle -> DPText -> IO ()
- putStrUtf :: DPText -> IO ()
- putStrLnUtf :: DPText -> IO ()
Documentation
newtype DPText
Constructors
DPText [DPTextToken] |
parseDPText :: ByteString -> DPText
convert lazy ByteString
to DPText
stripColors :: DPText -> DPText
Removes colors from DPText
hPutStrUtf :: Handle -> DPText -> IO ()
hPutStrLnUtf :: Handle -> DPText -> IO ()
putStrLnUtf :: DPText -> IO ()
same as putStrUtf
but with newline break at the end