-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Windows code page library for Haskell
--   
--   This library provides two modules:
--   
--   <ul>
--   <li><a>System.IO.CodePage</a>: a cross-platform module that exports
--   functions which adjust code pages on Windows, and do nothing on other
--   operating systems.</li>
--   <li><a>System.Win32.CodePage</a>: On Windows, this exports functions
--   for getting, setting, and analyzing code pages. On other operating
--   systems, this module exports nothing.</li>
--   </ul>
@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


-- | 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 <a>Bool</a>
--   argument is <a>True</a>, this function will emit a warning to
--   <tt>stderr</tt> indicating that the code page has been changed.
--   (<a>withCodePage</a> sets this argument to <a>False</a>.)
withCodePageVerbosity :: Bool -> CodePage -> IO a -> IO a

-- | A numeric type representing Windows code pages.
type CodePage = Word32

-- | 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
