31 lines
42 KiB
HTML
31 lines
42 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.HVFS</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-HVFS.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) 2004-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.HVFS</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Implementation Classes / Types</a></li><li><a href="#g:2">Re-exported types from other modules</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Haskell Virtual FS -- generic support for real or virtual filesystem in Haskell</p><p>Copyright (c) 2004-2005 John Goerzen, jgoerzen@complete.org</p><p>The idea of this module is to provide virtualization of filesystem calls.
|
|
In addition to the "real" system filesystem, you can also provide access
|
|
to other, virtual, filesystems using the same set of calls. Examples of
|
|
such virtual filesystems might include a remote FTP server, WebDAV server,
|
|
a local Hashtable, a ConfigParser object, or any other data structure
|
|
you can represent as a tree of named nodes containing strings.</p><p>Each <code><a href="System-IO-HVFS.html#t:HVFS">HVFS</a></code> function takes a <code><a href="System-IO-HVFS.html#t:HVFS">HVFS</a></code> "handle" (<code><a href="System-IO-HVFS.html#t:HVFS">HVFS</a></code> instance) as its
|
|
first parameter. If you wish to operate on the standard system filesystem,
|
|
you can just use <code><a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></code>.</p><p>The <a href="MissingH-HVFS-IO-InstanceHelpers.html">MissingH.HVFS.IO.InstanceHelpers</a> module contains some code to help
|
|
you make your own HVFS instances.</p><p>The <code><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a></code> class works together with the <a href="System-IO-HVIO.html">System.IO.HVIO</a> module
|
|
to provide a complete virtual filesystem and I/O model that allows you
|
|
to open up virtual filesystem files and act upon them in a manner similar
|
|
to standard Handles.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">class</span> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a href="#t:HVFS">HVFS</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vGetCurrentDirectory">vGetCurrentDirectory</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a></li><li><a href="#v:vSetCurrentDirectory">vSetCurrentDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vGetDirectoryContents">vGetDirectoryContents</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</li><li><a href="#v:vDoesFileExist">vDoesFileExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vDoesDirectoryExist">vDoesDirectoryExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vDoesExist">vDoesExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vCreateDirectory">vCreateDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vRemoveDirectory">vRemoveDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vRenameDirectory">vRenameDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vRemoveFile">vRemoveFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vRenameFile">vRenameFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vGetFileStatus">vGetFileStatus</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a></li><li><a href="#v:vGetSymbolicLinkStatus">vGetSymbolicLinkStatus</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a></li><li><a href="#v:vGetModificationTime">vGetModificationTime</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a></li><li><a href="#v:vRaiseError">vRaiseError</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO-Error.html#t:IOErrorType">IOErrorType</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> c</li><li><a href="#v:vCreateSymbolicLink">vCreateSymbolicLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vReadSymbolicLink">vReadSymbolicLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a></li><li><a href="#v:vCreateLink">vCreateLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a href="#t:HVFSStat">HVFSStat</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vDeviceID">vDeviceID</a> :: a -> <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></li><li><a href="#v:vFileID">vFileID</a> :: a -> <a href="System-IO-HVFS.html#t:FileID">FileID</a></li><li><a href="#v:vFileMode">vFileMode</a> :: a -> <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></li><li><a href="#v:vLinkCount">vLinkCount</a> :: a -> <a href="System-IO-HVFS.html#t:LinkCount">LinkCount</a></li><li><a href="#v:vFileOwner">vFileOwner</a> :: a -> <a href="System-IO-HVFS.html#t:UserID">UserID</a></li><li><a href="#v:vFileGroup">vFileGroup</a> :: a -> <a href="System-IO-HVFS.html#t:GroupID">GroupID</a></li><li><a href="#v:vSpecialDeviceID">vSpecialDeviceID</a> :: a -> <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></li><li><a href="#v:vFileSize">vFileSize</a> :: a -> <a href="System-IO-HVFS.html#t:FileOffset">FileOffset</a></li><li><a href="#v:vAccessTime">vAccessTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></li><li><a href="#v:vModificationTime">vModificationTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></li><li><a href="#v:vStatusChangeTime">vStatusChangeTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></li><li><a href="#v:vIsBlockDevice">vIsBlockDevice</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsCharacterDevice">vIsCharacterDevice</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsNamedPipe">vIsNamedPipe</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsRegularFile">vIsRegularFile</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsDirectory">vIsDirectory</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsSymbolicLink">vIsSymbolicLink</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:vIsSocket">vIsSocket</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="#t:HVFSOpenable">HVFSOpenable</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:vOpen">vOpen</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a></li><li><a href="#v:vReadFile">vReadFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:vWriteFile">vWriteFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:vOpenBinaryFile">vOpenBinaryFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:HVFSOpenEncap">HVFSOpenEncap</a> = <span class="keyword">forall</span> a . <a href="System-IO-HVIO.html#t:HVIO">HVIO</a> a => <a href="#v:HVFSOpenEncap">HVFSOpenEncap</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:HVFSStatEncap">HVFSStatEncap</a> = <span class="keyword">forall</span> a . <a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> a => <a href="#v:HVFSStatEncap">HVFSStatEncap</a> a</li><li class="src short"><a href="#v:withStat">withStat</a> :: <span class="keyword">forall</span> b. <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a> -> (<span class="keyword">forall</span> a. <a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> a => a -> b) -> b</li><li class="src short"><a href="#v:withOpen">withOpen</a> :: <span class="keyword">forall</span> b. <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a> -> (<span class="keyword">forall</span> a. <a href="System-IO-HVIO.html#t:HVIO">HVIO</a> a => a -> b) -> b</li><li class="src short"><span class="keyword">data</span> <a href="#t:SystemFS">SystemFS</a> = <a href="#v:SystemFS">SystemFS</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:FilePath">FilePath</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:DeviceID">DeviceID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CDev">CDev</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:FileID">FileID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CIno">CIno</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:FileMode">FileMode</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CMode">CMode</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:LinkCount">LinkCount</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CNlink">CNlink</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:UserID">UserID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CUid">CUid</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:GroupID">GroupID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CGid">CGid</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:FileOffset">FileOffset</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:COff">COff</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:EpochTime">EpochTime</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Foreign-C-Types.html#t:CTime">CTime</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:IOMode">IOMode</a> :: *</li></ul></div><div id="interface"><h1 id="g:1">Implementation Classes / Types</h1><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a name="t:HVFS" class="def">HVFS</a> a <span class="keyword">where</span></p><div class="doc"><p>The main HVFS class.</p><p>Default implementations of these functions are provided:</p><ul><li><code><a href="System-IO-HVFS.html#v:vGetModificationTime">vGetModificationTime</a></code> -- implemented in terms of <code><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></code></li><li><code><a href="System-IO-HVFS.html#v:vRaiseError">vRaiseError</a></code></li><li><code><a href="System-IO-HVFS.html#v:vDoesFileExist">vDoesFileExist</a></code> -- implemented in terms of <code><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></code></li><li><code><a href="System-IO-HVFS.html#v:vDoesDirectoryExist">vDoesDirectoryExist</a></code> -- implemented in terms of <code><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></code></li><li><code><a href="System-IO-HVFS.html#v:vDoesExist">vDoesExist</a></code> -- implemented in terms of <code><a href="System-IO-HVFS.html#v:vGetSymbolicLinkStatus">vGetSymbolicLinkStatus</a></code></li><li><code><a href="System-IO-HVFS.html#v:vGetSymbolicLinkStatus">vGetSymbolicLinkStatus</a></code> -- set to call <code><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></code>.</li></ul><p>Default implementations of all other functions
|
|
will generate an isIllegalOperation error, since they are assumed to be
|
|
un-implemented.</p><p>You should always provide at least a <code><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></code> call, and almost
|
|
certainly several of the others.</p><p>Most of these functions correspond to functions in System.Directory or
|
|
System.Posix.Files. Please see detailed documentation on them there.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="System-IO-HVFS.html#v:vGetFileStatus">vGetFileStatus</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vGetCurrentDirectory" class="def">vGetCurrentDirectory</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a></p><p class="src"><a name="v:vSetCurrentDirectory" class="def">vSetCurrentDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vGetDirectoryContents" class="def">vGetDirectoryContents</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</p><p class="src"><a name="v:vDoesFileExist" class="def">vDoesFileExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vDoesDirectoryExist" class="def">vDoesDirectoryExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vDoesExist" class="def">vDoesExist</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><div class="doc"><p>True if the file exists, regardless of what type it is.
|
|
This is even True if the given path is a broken symlink. </p></div><p class="src"><a name="v:vCreateDirectory" class="def">vCreateDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vRemoveDirectory" class="def">vRemoveDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vRenameDirectory" class="def">vRenameDirectory</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vRemoveFile" class="def">vRemoveFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vRenameFile" class="def">vRenameFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vGetFileStatus" class="def">vGetFileStatus</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a></p><p class="src"><a name="v:vGetSymbolicLinkStatus" class="def">vGetSymbolicLinkStatus</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a></p><p class="src"><a name="v:vGetModificationTime" class="def">vGetModificationTime</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a></p><p class="src"><a name="v:vRaiseError" class="def">vRaiseError</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO-Error.html#t:IOErrorType">IOErrorType</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> c</p><div class="doc"><p>Raise an error relating to actions on this class. </p></div><p class="src"><a name="v:vCreateSymbolicLink" class="def">vCreateSymbolicLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vReadSymbolicLink" class="def">vReadSymbolicLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a></p><p class="src"><a name="v:vCreateLink" class="def">vCreateLink</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p></div><div class="subs instances"><p id="control.i:HVFS" class="caption collapser" onclick="toggleSection('i:HVFS')">Instances</p><div id="section.i:HVFS" class="show"><table><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a name="t:HVFSStat" class="def">HVFSStat</a> a <span class="keyword">where</span></p><div class="doc"><p>Evaluating types of files and information about them.</p><p>This corresponds to the System.Posix.Types.FileStatus type, and indeed,
|
|
that is one instance of this class.</p><p>Inplementators must, at minimum, implement <code><a href="System-IO-HVFS.html#v:vIsDirectory">vIsDirectory</a></code> and
|
|
<code><a href="System-IO-HVFS.html#v:vIsRegularFile">vIsRegularFile</a></code>.</p><p>Default implementations of everything else are provided, returning
|
|
reasonable values.</p><p>A default implementation of this is not currently present on Windows.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="System-IO-HVFS.html#v:vIsRegularFile">vIsRegularFile</a>, <a href="System-IO-HVFS.html#v:vIsDirectory">vIsDirectory</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vDeviceID" class="def">vDeviceID</a> :: a -> <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></p><p class="src"><a name="v:vFileID" class="def">vFileID</a> :: a -> <a href="System-IO-HVFS.html#t:FileID">FileID</a></p><p class="src"><a name="v:vFileMode" class="def">vFileMode</a> :: a -> <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p><div class="doc"><p>Refers to file permissions, NOT the st_mode field from stat(2) </p></div><p class="src"><a name="v:vLinkCount" class="def">vLinkCount</a> :: a -> <a href="System-IO-HVFS.html#t:LinkCount">LinkCount</a></p><p class="src"><a name="v:vFileOwner" class="def">vFileOwner</a> :: a -> <a href="System-IO-HVFS.html#t:UserID">UserID</a></p><p class="src"><a name="v:vFileGroup" class="def">vFileGroup</a> :: a -> <a href="System-IO-HVFS.html#t:GroupID">GroupID</a></p><p class="src"><a name="v:vSpecialDeviceID" class="def">vSpecialDeviceID</a> :: a -> <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></p><p class="src"><a name="v:vFileSize" class="def">vFileSize</a> :: a -> <a href="System-IO-HVFS.html#t:FileOffset">FileOffset</a></p><p class="src"><a name="v:vAccessTime" class="def">vAccessTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></p><p class="src"><a name="v:vModificationTime" class="def">vModificationTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></p><p class="src"><a name="v:vStatusChangeTime" class="def">vStatusChangeTime</a> :: a -> <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></p><p class="src"><a name="v:vIsBlockDevice" class="def">vIsBlockDevice</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsCharacterDevice" class="def">vIsCharacterDevice</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsNamedPipe" class="def">vIsNamedPipe</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsRegularFile" class="def">vIsRegularFile</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsDirectory" class="def">vIsDirectory</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsSymbolicLink" class="def">vIsSymbolicLink</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p><p class="src"><a name="v:vIsSocket" class="def">vIsSocket</a> :: a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="subs instances"><p id="control.i:HVFSStat" class="caption collapser" onclick="toggleSection('i:HVFSStat')">Instances</p><div id="section.i:HVFSStat" class="show"><table><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/unix-2.7.1.0/System-Posix-Files-ByteString.html#t:FileStatus">FileStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:SimpleStat">SimpleStat</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a name="t:HVFSOpenable" class="def">HVFSOpenable</a> a <span class="keyword">where</span></p><div class="doc"><p>Types that can open a HVIO object should be instances of this class.
|
|
You need only implement <code><a href="System-IO-HVFS.html#v:vOpen">vOpen</a></code>. </p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="System-IO-HVFS.html#v:vOpen">vOpen</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:vOpen" class="def">vOpen</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a></p><p class="src"><a name="v:vReadFile" class="def">vReadFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><p class="src"><a name="v:vWriteFile" class="def">vWriteFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><p class="src"><a name="v:vOpenBinaryFile" class="def">vOpenBinaryFile</a> :: a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a></p></div><div class="subs instances"><p id="control.i:HVFSOpenable" class="caption collapser" onclick="toggleSection('i:HVFSOpenable')">Instances</p><div id="section.i:HVFSOpenable" class="show"><table><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> a => <a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> a => <a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:HVFSOpenEncap" class="def">HVFSOpenEncap</a></p><div class="doc"><p>Similar to <code><a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a></code>, but for <code><a href="System-IO-HVFS.html#v:vOpen">vOpen</a></code> result.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><span class="keyword">forall</span> a . <a href="System-IO-HVIO.html#t:HVIO">HVIO</a> a => <a name="v:HVFSOpenEncap" class="def">HVFSOpenEncap</a> a</td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:HVFSStatEncap" class="def">HVFSStatEncap</a></p><div class="doc"><p>Encapsulate a <code><a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a></code> result. This is required due to Haskell
|
|
typing restrictions. You can get at it with:</p><pre>case encap of
|
|
HVFSStatEncap x -> -- now use x</pre></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><span class="keyword">forall</span> a . <a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> a => <a name="v:HVFSStatEncap" class="def">HVFSStatEncap</a> a</td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><a name="v:withStat" class="def">withStat</a> :: <span class="keyword">forall</span> b. <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a> -> (<span class="keyword">forall</span> a. <a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> a => a -> b) -> b</p><div class="doc"><p>Convenience function for working with stat -- takes a stat result
|
|
and a function that uses it, and returns the result. </p><p>Here is an example from the HVFS source:</p><pre> vGetModificationTime fs fp =
|
|
do s <- vGetFileStatus fs fp
|
|
return $ epochToClockTime (withStat s vModificationTime)</pre><p>See <code><a href="System-Time-Utils.html#v:epochToClockTime">epochToClockTime</a></code> for more information.</p></div></div><div class="top"><p class="src"><a name="v:withOpen" class="def">withOpen</a> :: <span class="keyword">forall</span> b. <a href="System-IO-HVFS.html#t:HVFSOpenEncap">HVFSOpenEncap</a> -> (<span class="keyword">forall</span> a. <a href="System-IO-HVIO.html#t:HVIO">HVIO</a> a => a -> b) -> b</p><div class="doc"><p>Similar to <code><a href="System-IO-HVFS.html#v:withStat">withStat</a></code>, but for the <code><a href="System-IO-HVFS.html#v:vOpen">vOpen</a></code> result. </p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SystemFS" class="def">SystemFS</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SystemFS" class="def">SystemFS</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:SystemFS" class="caption collapser" onclick="toggleSection('i:SystemFS')">Instances</p><div id="section.i:SystemFS" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> <a href="System-IO-HVFS.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Re-exported types from other modules</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:FilePath" class="def">FilePath</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>File and directory names are values of type <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></code>, whose precise
|
|
meaning is operating system dependent. Files can be opened, yielding a
|
|
handle which can then be used to operate on the contents of that file.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:DeviceID" class="def">DeviceID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CDev">CDev</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:FileID" class="def">FileID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CIno">CIno</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:FileMode" class="def">FileMode</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CMode">CMode</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:LinkCount" class="def">LinkCount</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CNlink">CNlink</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:UserID" class="def">UserID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CUid">CUid</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:GroupID" class="def">GroupID</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:CGid">CGid</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:FileOffset" class="def">FileOffset</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html#t:COff">COff</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:EpochTime" class="def">EpochTime</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Foreign-C-Types.html#t:CTime">CTime</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:IOMode" class="def">IOMode</a> :: *</p><div class="doc"><p>See <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#v:openFile">openFile</a></code></p></div><div class="subs instances"><p id="control.i:IOMode" class="caption collapser" onclick="toggleSection('i:IOMode')">Instances</p><div id="section.i:IOMode" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Enum">Enum</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ix.html#t:Ix">Ix</a> <a href="System-IO-HVFS.html#t:IOMode">IOMode</a></td><td class="doc empty"> </td></tr></table></div></div></div></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> |