This file is indexed.

/usr/share/doc/libghc-debian-doc/html/Debian-Relation-Text.html is in libghc-debian-doc 3.89-1build1.

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
<!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>Debian.Relation.Text</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_Debian-Relation-Text.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Debian-Relation-Text.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">debian-3.89: Modules for working with the Debian package system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Debian.Relation.Text</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types</a></li><li><a href="#g:2">Helper Functions</a></li><li><a href="#g:3">Relation Parser</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A module for working with debian relationships <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</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">type</span> <a href="#t:AndRelation">AndRelation</a> = [<a href="Debian-Relation-Text.html#t:OrRelation">OrRelation</a>]</li><li class="src short"><span class="keyword">type</span> <a href="#t:OrRelation">OrRelation</a> = [<a href="Debian-Relation-Text.html#t:Relation">Relation</a>]</li><li class="src short"><span class="keyword">type</span> <a href="#t:Relations">Relations</a> = <a href="Debian-Relation-Text.html#t:AndRelation">AndRelation</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Relation">Relation</a> = <a href="#v:Rel">Rel</a> <a href="Debian-Relation-Common.html#t:BinPkgName">BinPkgName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:ArchitectureReq">ArchitectureReq</a><ul class="subs"><li>= <a href="#v:ArchOnly">ArchOnly</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="Debian-Arch.html#t:Arch">Arch</a>)</li><li>| <a href="#v:ArchExcept">ArchExcept</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="Debian-Arch.html#t:Arch">Arch</a>)</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:VersionReq">VersionReq</a><ul class="subs"><li>= <a href="#v:SLT">SLT</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></li><li>| <a href="#v:LTE">LTE</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></li><li>| <a href="#v:EEQ">EEQ</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></li><li>| <a href="#v:GRE">GRE</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></li><li>| <a href="#v:SGR">SGR</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></li></ul></li><li class="src short"><a href="#v:checkVersionReq">checkVersionReq</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:RelParser">RelParser</a> a = <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-ParserCombinators-Parsec-Char.html#t:CharParser">CharParser</a> () a</li><li class="src short"><span class="keyword">class</span> <a href="#t:ParseRelations">ParseRelations</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:parseRelations">parseRelations</a> :: a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="Debian-Relation-Text.html#t:Relations">Relations</a></li></ul></li></ul></div><div id="interface"><h1 id="g:1">Types</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:AndRelation" class="def">AndRelation</a> = [<a href="Debian-Relation-Text.html#t:OrRelation">OrRelation</a>] <a href="src/Debian-Relation-Common.html#AndRelation" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:OrRelation" class="def">OrRelation</a> = [<a href="Debian-Relation-Text.html#t:Relation">Relation</a>] <a href="src/Debian-Relation-Common.html#OrRelation" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Relations" class="def">Relations</a> = <a href="Debian-Relation-Text.html#t:AndRelation">AndRelation</a> <a href="src/Debian-Relation-Common.html#Relations" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Relation" class="def">Relation</a> <a href="src/Debian-Relation-Common.html#Relation" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Rel" class="def">Rel</a> <a href="Debian-Relation-Common.html#t:BinPkgName">BinPkgName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Relation" class="caption collapser" onclick="toggleSection('i:Relation')">Instances</p><div id="section.i:Relation" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Debian-Relation-Text.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="Debian-Relation-Text.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-60" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Debian-Relation-Text.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Debian-Relation-Text.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint-HughesPJClass.html#t:Pretty">Pretty</a> (<a href="Debian-Pretty.html#t:PP">PP</a> <a href="Debian-Relation-Text.html#t:Relation">Relation</a>)</span> <a href="src/Debian-Relation-Common.html#line-125" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint-HughesPJClass.html#t:Pretty">Pretty</a> (<a href="Debian-Pretty.html#t:PP">PP</a> <a href="Debian-Relation-Text.html#t:OrRelation">OrRelation</a>)</span> <a href="src/Debian-Relation-Common.html#line-122" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint-HughesPJClass.html#t:Pretty">Pretty</a> (<a href="Debian-Pretty.html#t:PP">PP</a> <a href="Debian-Relation-Text.html#t:Relations">Relations</a>)</span> <a href="src/Debian-Relation-Common.html#line-119" class="link">Source</a></td><td class="doc"><p>Wrap <code><a href="Debian-Pretty.html#t:PP">PP</a></code> around type synonyms that might overlap with the
 `Pretty [a]` instance.</p></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ArchitectureReq" class="def">ArchitectureReq</a> <a href="src/Debian-Relation-Common.html#ArchitectureReq" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ArchOnly" class="def">ArchOnly</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="Debian-Arch.html#t:Arch">Arch</a>)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ArchExcept" class="def">ArchExcept</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="Debian-Arch.html#t:Arch">Arch</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ArchitectureReq" class="caption collapser" onclick="toggleSection('i:ArchitectureReq')">Instances</p><div id="section.i:ArchitectureReq" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint-HughesPJClass.html#t:Pretty">Pretty</a> (<a href="Debian-Pretty.html#t:PP">PP</a> <a href="Debian-Relation-Text.html#t:ArchitectureReq">ArchitectureReq</a>)</span> <a href="src/Debian-Relation-Common.html#line-131" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:VersionReq" class="def">VersionReq</a> <a href="src/Debian-Relation-Common.html#VersionReq" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SLT" class="def">SLT</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:LTE" class="def">LTE</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:EEQ" class="def">EEQ</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:GRE" class="def">GRE</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:SGR" class="def">SGR</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:VersionReq" class="caption collapser" onclick="toggleSection('i:VersionReq')">Instances</p><div id="section.i:VersionReq" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-93" class="link">Source</a></td><td class="doc"><p>The sort order is based on version number first, then on the kind of
 relation, sorting in the order <img src="," title="&lt;= , ==, &gt;= ," /></p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint-HughesPJClass.html#t:Pretty">Pretty</a> (<a href="Debian-Pretty.html#t:PP">PP</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a>)</span> <a href="src/Debian-Relation-Common.html#line-128" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:2">Helper Functions</h1><div class="top"><p class="src"><a name="v:checkVersionReq" class="def">checkVersionReq</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Relation-Text.html#t:VersionReq">VersionReq</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Debian-Version-Common.html#t:DebianVersion">DebianVersion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Debian-Relation-Common.html#checkVersionReq" class="link">Source</a></p><div class="doc"><p>Check if a version number satisfies a version requirement.</p></div></div><h1 id="g:3">Relation Parser</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:RelParser" class="def">RelParser</a> a = <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-ParserCombinators-Parsec-Char.html#t:CharParser">CharParser</a> () a <a href="src/Debian-Relation-String.html#RelParser" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:ParseRelations" class="def">ParseRelations</a> a <span class="keyword">where</span> <a href="src/Debian-Relation-Common.html#ParseRelations" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:parseRelations" class="def">parseRelations</a> :: a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="Debian-Relation-Text.html#t:Relations">Relations</a> <a href="src/Debian-Relation-Common.html#parseRelations" class="link">Source</a></p><div class="doc"><p><code><a href="Debian-Relation-Text.html#v:parseRelations">parseRelations</a></code> parse a debian relation (i.e. the value of a
 Depends field). Return a parsec error or a value of type
 <code><a href="Debian-Relation-Text.html#t:Relations">Relations</a></code></p></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>