15 lines
2.7 KiB
HTML
15 lines
2.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.IO.WindowsCompat</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
|
|
window.onload = function () {pageLoad();setSynopsis("mini_System-IO-WindowsCompat.html");};
|
|
//]]>
|
|
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.WindowsCompat</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Provides some types and related items on Windows to be compatible with
|
|
the System.Posix.* libraries</p><p>See also <a href="System-IO-StatCompat.html">System.IO.StatCompat</a>, which this module re-exports.</p><p>On non-Windows platforms, this module does nothing.</p><p>On Windows, it re-exports <a href="System-IO-StatCompat.html">System.IO.StatCompat</a>. It also provides various
|
|
file type information modes that are otherwise in <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html">System.Posix.Types</a> or
|
|
<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/unix-2.7.1.0/System-Posix-Files.html">System.Posix.Files</a>. It also provides
|
|
a rudimentary implemention of getFileStatus that emulates the Posix call
|
|
to stat(2).</p><p>Common usage might be like this:</p><pre>import System.Posix.Types
|
|
#if (defined(mingw32_HOST_OS) || defined(mingw32_TARGET_OS) || defined(__MINGW32__))
|
|
import System.IO.WindowsCompat
|
|
#else
|
|
import System.Posix.Files
|
|
#endif</pre><p>Or, to avoid having to use CPP and make things even easier, just import
|
|
<a href="System-IO-PlafCompat.html">System.IO.PlafCompat</a>, which essentially does the above.</p></div></div><div id="interface"></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html> |