This file is indexed.

/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path-CurrentOS.html is in libghc-system-filepath-doc 0.4.7-2build1.

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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!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>Filesystem.Path.CurrentOS</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_Filesystem-Path-CurrentOS.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Filesystem-Path-CurrentOS.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">system-filepath-0.4.7: High-level, byte-based file and directory path manipulations</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Maintainer</th><td>jmillikin@gmail.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Filesystem.Path.CurrentOS</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Type conversions
</a></li><li><a href="#g:2">Rule&#8208;specific path properties
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Re&#8208;exports contents of <a href="Filesystem-Path-Rules.html">Filesystem.Path.Rules</a>, defaulting to the
 current OS&#8217;s rules when needed.
</p><p>Also enables <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a></code> and <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:IsString">IsString</a></code> instances for <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>.
</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">module <a href="Filesystem-Path.html">Filesystem.Path</a></li><li class="src short"><a href="#v:currentOS">currentOS</a> :: <a href="Filesystem-Path-Rules.html#t:Rules">Rules</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:toText">toText</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li class="src short"><a href="#v:fromText">fromText</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:encode">encode</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:decode">decode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:encodeString">encodeString</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:decodeString">decodeString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:valid">valid</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:splitSearchPath">splitSearchPath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="Filesystem-Path.html">Filesystem.Path</a></p></div><div class="top"><p class="src"><a name="v:currentOS" class="def">currentOS</a> :: <a href="Filesystem-Path-Rules.html#t:Rules">Rules</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Filesystem-Path-CurrentOS.html#currentOS" class="link">Source</a></p></div><h1 id="g:1">Type conversions
</h1><div class="top"><p class="src"><a name="v:toText" class="def">toText</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a><a href="src/Filesystem-Path-CurrentOS.html#toText" class="link">Source</a></p><div class="doc"><p>Attempt to convert a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> to human&#8208;readable text.
</p><p>If the path is decoded successfully, the result is a <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#v:Right">Right</a></code> containing
 the decoded text. Successfully decoded text can be converted back to the
 original path using <code><a href="Filesystem-Path-CurrentOS.html#v:fromText">fromText</a></code>.
</p><p>If the path cannot be decoded, the result is a <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#v:Left">Left</a></code> containing an
 approximation of the original path. If displayed to the user, this value
 should be accompanied by some warning that the path has an invalid
 encoding. Approximated text cannot be converted back to the original path.
</p><p>This function ignores the user&#8217;s locale, and assumes all file paths
 are encoded in UTF8. If you need to display file paths with an unusual or
 obscure encoding, use <code><a href="Filesystem-Path-CurrentOS.html#v:encode">encode</a></code> and then decode them manually.
</p><p>Since: 0.2
</p></div></div><div class="top"><p class="src"><a name="v:fromText" class="def">fromText</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path-CurrentOS.html#fromText" class="link">Source</a></p><div class="doc"><p>Convert human&#8208;readable text into a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>.
</p><p>This function ignores the user&#8217;s locale, and assumes all file paths
 are encoded in UTF8. If you need to create file paths with an unusual or
 obscure encoding, encode them manually and then use <code><a href="Filesystem-Path-CurrentOS.html#v:decode">decode</a></code>.
</p><p>Since: 0.2
</p></div></div><div class="top"><p class="src"><a name="v:encode" class="def">encode</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Filesystem-Path-CurrentOS.html#encode" class="link">Source</a></p><div class="doc"><p>Convert a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> to a platform&#8208;specific format, suitable
 for use with external OS functions.
</p><p>Since: 0.3
</p></div></div><div class="top"><p class="src"><a name="v:decode" class="def">decode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path-CurrentOS.html#decode" class="link">Source</a></p><div class="doc"><p>Convert a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> from a platform&#8208;specific format, suitable
 for use with external OS functions.
</p><p>Since: 0.3
</p></div></div><div class="top"><p class="src"><a name="v:encodeString" class="def">encodeString</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Filesystem-Path-CurrentOS.html#encodeString" class="link">Source</a></p><div class="doc"><p>Attempt to convert a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> to a string suitable for use with
 functions in <code>System.IO</code>. The contents of this string are
 platform&#8208;dependent, and are not guaranteed to be
 human&#8208;readable. For converting <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>s to a
 human&#8208;readable format, use <code><a href="Filesystem-Path-CurrentOS.html#v:toText">toText</a></code>.
</p><p>Since: 0.3.1
</p></div></div><div class="top"><p class="src"><a name="v:decodeString" class="def">decodeString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path-CurrentOS.html#decodeString" class="link">Source</a></p><div class="doc"><p>Attempt to parse a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> from a string suitable for use with
 functions in <code>System.IO</code>. Do not use this function for parsing
 human&#8208;readable paths, as the character set decoding is
 platform&#8208;dependent. For converting human&#8208;readable text to a
 <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>, use <code><a href="Filesystem-Path-CurrentOS.html#v:fromText">fromText</a></code>.
</p><p>Since: 0.3.1
</p></div></div><h1 id="g:2">Rule&#8208;specific path properties
</h1><div class="top"><p class="src"><a name="v:valid" class="def">valid</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Filesystem-Path-CurrentOS.html#valid" class="link">Source</a></p><div class="doc"><p>Check if a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code> is valid; it must not contain any illegal
 characters, and must have a root appropriate to the current <code><a href="Filesystem-Path-Rules.html#t:Rules">Rules</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:splitSearchPath" class="def">splitSearchPath</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>]<a href="src/Filesystem-Path-CurrentOS.html#splitSearchPath" class="link">Source</a></p><div class="doc"><p>Split a search path, such as <code>$PATH</code> or <code>$PYTHONPATH</code>, into a list
 of <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>s.
</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>