This file is indexed.

/usr/share/doc/libghc-postgresql-simple-doc/html/Database-PostgreSQL-Simple-Notification.html is in libghc-postgresql-simple-doc 0.4.0.2-1.

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
25
26
<!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>Database.PostgreSQL.Simple.Notification</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_Database-PostgreSQL-Simple-Notification.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-PostgreSQL-Simple-Notification.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">postgresql-simple-0.4.0.2: Mid-Level PostgreSQL client library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>leon@melding-monads.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Database.PostgreSQL.Simple.Notification</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Support for receiving asynchronous notifications via PostgreSQL's
 Listen/Notify mechanism.  See
 <a href="http://www.postgresql.org/docs/9.1/static/sql-notify.html">http://www.postgresql.org/docs/9.1/static/sql-notify.html</a> for more
 information.
</p><p>Note that on Windows,  <code>getNotification</code> currently uses a polling loop
 of 1 second to check for more notifications,  due to some inadequacies
 in GHC's IO implementation and interface on that platform.   See GHC
 issue #7353 for more information.  While this workaround is less than
 ideal,  notifications are still better than polling the database directly.
 Notifications do not create any extra work for the backend,  and are
 likely cheaper on the client side as well.
</p><p><a href="http://hackage.haskell.org/trac/ghc/ticket/7353">http://hackage.haskell.org/trac/ghc/ticket/7353</a>
</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">data</span>  <a href="#t:Notification">Notification</a>  = <a href="#v:Notification">Notification</a> {<ul class="subs"><li><a href="#v:notificationPid">notificationPid</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:CPid">CPid</a></li><li><a href="#v:notificationChannel">notificationChannel</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li><a href="#v:notificationData">notificationData</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li></ul>}</li><li class="src short"><a href="#v:getNotification">getNotification</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Database-PostgreSQL-Simple-Notification.html#t:Notification">Notification</a></li><li class="src short"><a href="#v:getNotificationNonBlocking">getNotificationNonBlocking</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <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/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Database-PostgreSQL-Simple-Notification.html#t:Notification">Notification</a>)</li><li class="src short"><a href="#v:getBackendPID">getBackendPID</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <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-Posix-Types.html#t:CPid">CPid</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Notification" class="def">Notification</a>  <a href="src/Database-PostgreSQL-Simple-Notification.html#Notification" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Notification" class="def">Notification</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:notificationPid" class="def">notificationPid</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:CPid">CPid</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:notificationChannel" class="def">notificationChannel</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:notificationData" class="def">notificationData</a> :: !<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:getNotification" class="def">getNotification</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Database-PostgreSQL-Simple-Notification.html#t:Notification">Notification</a><a href="src/Database-PostgreSQL-Simple-Notification.html#getNotification" class="link">Source</a></p><div class="doc"><p>Returns a single notification.   If no notifications are available,
   <code><a href="Database-PostgreSQL-Simple-Notification.html#v:getNotification">getNotification</a></code> blocks until one arrives.
</p></div></div><div class="top"><p class="src"><a name="v:getNotificationNonBlocking" class="def">getNotificationNonBlocking</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <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/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Database-PostgreSQL-Simple-Notification.html#t:Notification">Notification</a>)<a href="src/Database-PostgreSQL-Simple-Notification.html#getNotificationNonBlocking" class="link">Source</a></p><div class="doc"><p>Non-blocking variant of <code><a href="Database-PostgreSQL-Simple-Notification.html#v:getNotification">getNotification</a></code>.   Returns a single notification,
 if available.   If no notifications are available,  returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#v:Nothing">Nothing</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:getBackendPID" class="def">getBackendPID</a> :: <a href="Database-PostgreSQL-Simple-Internal.html#t:Connection">Connection</a> -&gt; <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-Posix-Types.html#t:CPid">CPid</a><a href="src/Database-PostgreSQL-Simple-Notification.html#getBackendPID" class="link">Source</a></p><div class="doc"><p>Returns the process <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:CPid">CPid</a></code> of the backend server process
 handling this connection.
</p><p>The backend PID is useful for debugging purposes and for comparison
 to NOTIFY messages (which include the PID of the notifying backend
 process). Note that the PID belongs to a process executing on the
 database server host, not the local host!
</p></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>