-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Windows code page library for Haskell -- -- This library provides two modules: -- -- @package code-page @version 0.1.1 -- | On Windows, this exports functions for getting, setting, and analyzing -- code pages. On other operating systems, this exports nothing. module System.Win32.CodePage type CodePage = UINT getConsoleCP :: IO UINT getConsoleOutputCP :: IO UINT setConsoleCP :: UINT -> IO () setConsoleOutputCP :: UINT -> IO () getACP :: IO CodePage getOEMCP :: CodePage codePageEncoding :: Word32 -> TextEncoding mkCodePageEncoding :: CodingFailureMode -> Word32 -> TextEncoding isValidCodePage :: CodePage -> IO Bool -- | Enumerates all installed code pages in sorted order. installedCodePages :: IO [CodePage] -- | Enumerates all supported code pages in sorted order. supportedCodePages :: IO [CodePage] stringToUnicode :: CodePage -> String -> IO String -- | Exports functions which adjust code pages on Windows, and do nothing -- on other operating systems. module System.IO.CodePage -- | Sets the code page for an action to UTF-8 as necessary. withCP65001 :: IO a -> IO a -- | Sets the code page for an action to UTF-16LE as necessary. withCP1200 :: IO a -> IO a -- | Sets the code page for an action to UTF-16BE as necessary. withCP1201 :: IO a -> IO a -- | Sets the code page for an action to UTF-32LE as necessary. withCP12000 :: IO a -> IO a -- | Sets the code page for an action to UTF-32BE as necessary. withCP12001 :: IO a -> IO a -- | Sets the code page for an action as necessary. withCodePage :: CodePage -> IO a -> IO a -- | Sets the code page for an action as necessary. If the Bool -- argument is True, this function will emit a warning to -- stderr indicating that the code page has been changed. -- (withCodePage sets this argument to False.) withCodePageVerbosity :: Bool -> CodePage -> IO a -> IO a -- | A numeric type representing Windows code pages. type CodePage = CodePage -- | The UTF-8 code page. cp65001 :: CodePage -- | The UTF-16LE code page. cp1200 :: CodePage -- | The UTF-16BE code page. cp1201 :: CodePage -- | The UTF-32LE code page. cp12000 :: CodePage -- | The UTF-32BE code page. cp12001 :: CodePage