This file is indexed.

/usr/share/doc/libghc-time-compat-doc/html/Data-Time-Compat.html is in libghc-time-compat-doc 0.1.0.1-3.

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
27
<!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>Data.Time.Compat</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_Data-Time-Compat.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Time-Compat.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">time-compat-0.1.0.1: Compatibility with old-time for the time package</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Time.Compat</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Converting between representations
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Compatibility with the
   <a href="old-time">http://hackage.haskell.org/package/old-time</a> package for the
   &quot;new&quot; <a href="time">http://hackage.haskell.org/package/time</a> package.
</p><p>This is useful for writing portable code; in particular, if you're
   using the <a href="directory">http://hackage.haskell.org/package/directory</a>
   package and you want your code to build with both GHC 7.6 and earlier
   versions.  The version of <code>directory</code> used with GHC 7.6 changed
   a dependency from <code>old-time</code> to <code>time</code> which means its
   <code>getModificationTime</code> function now returns a <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></code> instead of
   a <code><a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:ClockTime">ClockTime</a></code>.  This type affects the public API of many
   libraries that use it.  To make such libraries portable, port your
   code to use the <code>time</code> package and to only rely on <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></code> in
   its public API, and call <code><a href="Data-Time-Compat.html#v:toUTCTime">toUTCTime</a></code> on the values returned by
   functions like <code>getModificationTime</code>, for example:
</p><pre>fmap toUTCTime getModificationTime
</pre><p>If you're using <code>directory-1.2</code>, <code><a href="Data-Time-Compat.html#v:toUTCTime">toUTCTime</a></code> will just be <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#v:id">id</a></code> and the
   original value is returned intact.  If you're using an older
   <code>directory</code>, for example because you're building with GHC 7.4, the
   <code><a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:ClockTime">ClockTime</a></code> returned by <code>getModificationTime</code> will be
   converted to a <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></code> and will be compatible with your code
   ported to the new <code>time</code> package.
</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="#t:ToUTCTime">ToUTCTime</a> a  <span class="keyword">where</span><ul class="subs"><li><a href="#v:toUTCTime">toUTCTime</a> :: a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li></ul></li></ul></div><div id="interface"><h1 id="g:1">Converting between representations
</h1><div class="top"><p class="src"><span class="keyword">class</span>  <a name="t:ToUTCTime" class="def">ToUTCTime</a> a  <span class="keyword">where</span><a href="src/Data-Time-Compat.html#ToUTCTime" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toUTCTime" class="def">toUTCTime</a> :: a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a><a href="src/Data-Time-Compat.html#toUTCTime" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:ToUTCTime" class="caption collapser" onclick="toggleSection('i:ToUTCTime')">Instances</p><div id="section.i:ToUTCTime" class="show"><table><tr><td class="src"><a href="Data-Time-Compat.html#t:ToUTCTime">ToUTCTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:ClockTime">ClockTime</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Data-Time-Compat.html#t:ToUTCTime">ToUTCTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.1/System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Data-Time-Compat.html#t:ToUTCTime">ToUTCTime</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></td><td class="doc empty">&nbsp;</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>