This file is indexed.

/usr/share/doc/libghc-executable-path-doc/html/System-Environment-Executable.html is in libghc-executable-path-doc 0.0.3-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
28
<!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.Environment.Executable</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-Environment-Executable.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Environment-Executable.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">executable-path-0.0.3: Finding out the full path of the executable.</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">System.Environment.Executable</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The documentation of <a href="System-Environment-getProgName.html">System.Environment.getProgName</a> says that
</p><p>&quot;However, this is hard-to-impossible to implement on some non-Unix OSes, 
so instead, for maximum portability, we just return the leafname 
of the program as invoked. Even then there are some differences 
between platforms: on Windows, for example, a program invoked as 
foo is probably really FOO.EXE, and that is what <a href="getProgName.html">getProgName</a> will 
return.&quot;
</p><p>This library tries to fix this issue.
It also provides some platform-specific functions (most notably getting
the path of the application bundle on OSX). Supported operating
systems:
</p><ul><li> Win32 (tested on Windows XP / x86 only)
</li><li> Mac OS X (tested on Leopard / x86 only)
</li><li> Linux
</li><li> FreeBSD (tested on FreeBSD 6.4)
</li><li> *BSD (with procfs mounted, plus fallback for certain shells; untested)
</li><li> Solaris (untested, and probably works on Solaris 10 only) 
</li></ul></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"><a href="#v:getExecutablePath">getExecutablePath</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:FilePath">FilePath</a></li><li class="src short"><a href="#v:splitExecutablePath">splitExecutablePath</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:FilePath">FilePath</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:ScriptPath">ScriptPath</a> <ul class="subs"><li>= <a href="#v:Executable">Executable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>  </li><li>| <a href="#v:RunGHC">RunGHC</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>  </li><li>| <a href="#v:Interactive">Interactive</a>  </li></ul></li><li class="src short"><a href="#v:getScriptPath">getScriptPath</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-Environment-Executable.html#t:ScriptPath">ScriptPath</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:getExecutablePath" class="def">getExecutablePath</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:FilePath">FilePath</a><a href="src/System-Environment-Executable-Linux.html#getExecutablePath" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:splitExecutablePath" class="def">splitExecutablePath</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:FilePath">FilePath</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)<a href="src/System-Environment-Executable.html#splitExecutablePath" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ScriptPath" class="def">ScriptPath</a>  <a href="src/System-Environment-Executable.html#ScriptPath" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Executable" class="def">Executable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>it was (probably) a proper compiled executable
</p></td></tr><tr><td class="src"><a name="v:RunGHC" class="def">RunGHC</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>it was a script run by runghc/runhaskell
</p></td></tr><tr><td class="src"><a name="v:Interactive" class="def">Interactive</a></td><td class="doc"><p>we are in GHCi
</p></td></tr></table></div><div class="subs instances"><p id="control.i:ScriptPath" class="caption collapser" onclick="toggleSection('i:ScriptPath')">Instances</p><div id="section.i:ScriptPath" class="show"><table><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-Environment-Executable.html#t:ScriptPath">ScriptPath</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getScriptPath" class="def">getScriptPath</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-Environment-Executable.html#t:ScriptPath">ScriptPath</a><a href="src/System-Environment-Executable.html#getScriptPath" class="link">Source</a></p><div class="doc"><p>An experimental hack which tries to figure out if the program
 was run with <code>runghc</code> or <code>runhaskell</code> or <code>ghci</code>, and then tries to find 
 out the directory of the <em>source</em> (or object file).
</p><p>GHC only.
</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>