vty-6.1: A simple terminal UI library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.UnicodeWidthTable.IO

Synopsis

Documentation

readUnicodeWidthTable :: FilePath -> IO (Either String UnicodeWidthTable) Source #

Load a binary unicode width table from the specified file.

This either returns a successfully parsed table or a table parsing error message. This does not handle I/O exceptions.

parseUnicodeWidthTable :: ByteString -> Either String UnicodeWidthTable Source #

Parse a binary unicode width table.

writeUnicodeWidthTable :: FilePath -> UnicodeWidthTable -> IO () Source #

Write the unicode width table to the specified path.

This does not handle I/O exceptions.