/usr/share/doc/libghc-hinotify-doc/html/System-INotify.html is in libghc-hinotify-doc 0.3.5-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!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.INotify</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-INotify.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-INotify.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hinotify-0.3.5: Haskell binding to inotify</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>hc portable, linux only</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>kolmodin@gmail.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">System.INotify</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A Haskell binding to INotify.
See <a href="http://www.kernel.org/pub/linux/kernel/people/rml/inotify/">http://www.kernel.org/pub/linux/kernel/people/rml/inotify/</a> and <code>man
inotify</code>.
</p><p>Use <code><a href="System-INotify.html#v:initINotify">initINotify</a></code> to get a <code><a href="System-INotify.html#t:INotify">INotify</a></code>, then use <code><a href="System-INotify.html#v:addWatch">addWatch</a></code> to
add a watch on a file or directory. Select which events you're interested
in with <code><a href="System-INotify.html#t:EventVariety">EventVariety</a></code>, which corresponds to the <code><a href="System-INotify.html#t:Event">Event</a></code> events.
</p><p>Use <code><a href="System-INotify.html#v:removeWatch">removeWatch</a></code> once you don't want to watch a file any more.
</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:initINotify" class="def">initINotify</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-INotify.html#t:INotify">INotify</a><a href="src/System-INotify.html#initINotify" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:killINotify" class="def">killINotify</a> :: <a href="System-INotify.html#t:INotify">INotify</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-INotify.html#killINotify" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withINotify" class="def">withINotify</a> :: (<a href="System-INotify.html#t:INotify">INotify</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a) -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/System-INotify.html#withINotify" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:addWatch" class="def">addWatch</a> :: <a href="System-INotify.html#t:INotify">INotify</a> -> [<a href="System-INotify.html#t:EventVariety">EventVariety</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> (<a href="System-INotify.html#t:Event">Event</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()) -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-INotify.html#t:WatchDescriptor">WatchDescriptor</a><a href="src/System-INotify.html#addWatch" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:removeWatch" class="def">removeWatch</a> :: <a href="System-INotify.html#t:WatchDescriptor">WatchDescriptor</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-INotify.html#removeWatch" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:INotify" class="def">INotify</a> <a href="src/System-INotify.html#INotify" class="link">Source</a></p><div class="subs instances"><p id="control.i:INotify" class="caption collapser" onclick="toggleSection('i:INotify')">Instances</p><div id="section.i:INotify" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-INotify.html#t:INotify">INotify</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-INotify.html#t:INotify">INotify</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:WatchDescriptor" class="def">WatchDescriptor</a> <a href="src/System-INotify.html#WatchDescriptor" class="link">Source</a></p><div class="subs instances"><p id="control.i:WatchDescriptor" class="caption collapser" onclick="toggleSection('i:WatchDescriptor')">Instances</p><div id="section.i:WatchDescriptor" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-INotify.html#t:WatchDescriptor">WatchDescriptor</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-INotify.html#t:WatchDescriptor">WatchDescriptor</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:Event" class="def">Event</a> <a href="src/System-INotify.html#Event" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Accessed" class="def">Accessed</a></td><td class="doc"><p>A file was accessed. <code>Accessed isDirectory file</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maybeFilePath" class="def">maybeFilePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Modified" class="def">Modified</a></td><td class="doc"><p>A file was modified. <code>Modified isDirectory file</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maybeFilePath" class="def">maybeFilePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Attributes" class="def">Attributes</a></td><td class="doc"><p>A files attributes where changed. <code>Attributes isDirectory file</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maybeFilePath" class="def">maybeFilePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Closed" class="def">Closed</a></td><td class="doc"><p>A file was closed. <code>Closed isDirectory file wasWriteable</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maybeFilePath" class="def">maybeFilePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:wasWriteable" class="def">wasWriteable</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Opened" class="def">Opened</a></td><td class="doc"><p>A file was opened. <code>Opened isDirectory maybeFilePath</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maybeFilePath" class="def">maybeFilePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:MovedOut" class="def">MovedOut</a></td><td class="doc"><p>A file was moved away from the watched dir. <code>MovedFrom isDirectory from cookie</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:filePath" class="def">filePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:moveCookie" class="def">moveCookie</a> :: <a href="System-INotify.html#t:Cookie">Cookie</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:MovedIn" class="def">MovedIn</a></td><td class="doc"><p>A file was moved into the watched dir. <code>MovedTo isDirectory to cookie</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:filePath" class="def">filePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:moveCookie" class="def">moveCookie</a> :: <a href="System-INotify.html#t:Cookie">Cookie</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:MovedSelf" class="def">MovedSelf</a></td><td class="doc"><p>The watched file was moved. <code>MovedSelf isDirectory</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Created" class="def">Created</a></td><td class="doc"><p>A file was created. <code>Created isDirectory file</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:filePath" class="def">filePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:Deleted" class="def">Deleted</a></td><td class="doc"><p>A file was deleted. <code>Deleted isDirectory file</code>
</p></td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:filePath" class="def">filePath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:DeletedSelf" class="def">DeletedSelf</a></td><td class="doc"><p>The file watched was deleted.
</p></td></tr><tr><td class="src"><a name="v:Unmounted" class="def">Unmounted</a></td><td class="doc"><p>The file watched was unmounted.
</p></td></tr><tr><td class="src"><a name="v:QOverflow" class="def">QOverflow</a></td><td class="doc"><p>The queue overflowed.
</p></td></tr><tr><td class="src"><a name="v:Ignored" class="def">Ignored</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Unknown" class="def">Unknown</a> FDEvent</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Event" class="caption collapser" onclick="toggleSection('i:Event')">Instances</p><div id="section.i:Event" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-INotify.html#t:Event">Event</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-INotify.html#t:Event">Event</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:EventVariety" class="def">EventVariety</a> <a href="src/System-INotify.html#EventVariety" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Access" class="def">Access</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Modify" class="def">Modify</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Attrib" class="def">Attrib</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Close" class="def">Close</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:CloseWrite" class="def">CloseWrite</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:CloseNoWrite" class="def">CloseNoWrite</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Open" class="def">Open</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Move" class="def">Move</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MoveIn" class="def">MoveIn</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MoveOut" class="def">MoveOut</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MoveSelf" class="def">MoveSelf</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Create" class="def">Create</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Delete" class="def">Delete</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:DeleteSelf" class="def">DeleteSelf</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:OnlyDir" class="def">OnlyDir</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:NoSymlink" class="def">NoSymlink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MaskAdd" class="def">MaskAdd</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:OneShot" class="def">OneShot</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:AllEvents" class="def">AllEvents</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:EventVariety" class="caption collapser" onclick="toggleSection('i:EventVariety')">Instances</p><div id="section.i:EventVariety" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-INotify.html#t:EventVariety">EventVariety</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:Cookie" class="def">Cookie</a> <a href="src/System-INotify.html#Cookie" class="link">Source</a></p><div class="subs instances"><p id="control.i:Cookie" class="caption collapser" onclick="toggleSection('i:Cookie')">Instances</p><div id="section.i:Cookie" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-INotify.html#t:Cookie">Cookie</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="System-INotify.html#t:Cookie">Cookie</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-INotify.html#t:Cookie">Cookie</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.13.2</p></div></body></html>
|