/usr/share/doc/libghc-debian-doc/html/Debian-Relation.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</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.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Debian-Relation.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</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">class</span> <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) => <a href="#t:PkgName">PkgName</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:pkgNameFromString">pkgNameFromString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> a</li></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:SrcPkgName">SrcPkgName</a> = <a href="#v:SrcPkgName">SrcPkgName</a> {<ul class="subs"><li><a href="#v:unSrcPkgName">unSrcPkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:BinPkgName">BinPkgName</a> = <a href="#v:BinPkgName">BinPkgName</a> {<ul class="subs"><li><a href="#v:unBinPkgName">unBinPkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:Relations">Relations</a> = <a href="Debian-Relation.html#t:AndRelation">AndRelation</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:AndRelation">AndRelation</a> = [<a href="Debian-Relation.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.html#t:Relation">Relation</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.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.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.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-Relation.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-Relation.html#t:Arch">Arch</a>)</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Arch">Arch</a><ul class="subs"><li>= <a href="#v:Source">Source</a></li><li>| <a href="#v:All">All</a></li><li>| <a href="#v:Binary">Binary</a> <a href="Debian-Relation.html#t:ArchOS">ArchOS</a> <a href="Debian-Relation.html#t:ArchCPU">ArchCPU</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ArchOS">ArchOS</a><ul class="subs"><li>= <a href="#v:ArchOS">ArchOS</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:ArchOSAny">ArchOSAny</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ArchCPU">ArchCPU</a><ul class="subs"><li>= <a href="#v:ArchCPU">ArchCPU</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:ArchCPUAny">ArchCPUAny</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.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-Version-Common.html#t:DebianVersion">DebianVersion</a> -> <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 -> <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.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">class</span> <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) => <a name="t:PkgName" class="def">PkgName</a> a <span class="keyword">where</span> <a href="src/Debian-Relation-Common.html#PkgName" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:pkgNameFromString" class="def">pkgNameFromString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> a <a href="src/Debian-Relation-Common.html#pkgNameFromString" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:PkgName" class="caption collapser" onclick="toggleSection('i:PkgName')">Instances</p><div id="section.i:PkgName" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Debian-Relation.html#t:PkgName">PkgName</a> <a href="Debian-Relation.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-37" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Debian-Relation.html#t:PkgName">PkgName</a> <a href="Debian-Relation.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-40" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:SrcPkgName" class="def">SrcPkgName</a> <a href="src/Debian-Relation-Common.html#SrcPkgName" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SrcPkgName" class="def">SrcPkgName</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:unSrcPkgName" class="def">unSrcPkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:SrcPkgName" class="caption collapser" onclick="toggleSection('i:SrcPkgName')">Instances</p><div id="section.i:SrcPkgName" 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.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-31" class="link">Source</a></td><td class="doc empty"> </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-Data.html#t:Data">Data</a> <a href="Debian-Relation.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-31" class="link">Source</a></td><td class="doc empty"> </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.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-31" class="link">Source</a></td><td class="doc empty"> </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.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-31" class="link">Source</a></td><td class="doc empty"> </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.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-31" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Debian-Relation.html#t:PkgName">PkgName</a> <a href="Debian-Relation.html#t:SrcPkgName">SrcPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-40" class="link">Source</a></td><td class="doc empty"> </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.html#t:SrcPkgName">SrcPkgName</a>)</span> <a href="src/Debian-Relation-Common.html#line-114" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:BinPkgName" class="def">BinPkgName</a> <a href="src/Debian-Relation-Common.html#BinPkgName" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:BinPkgName" class="def">BinPkgName</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:unBinPkgName" class="def">unBinPkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:BinPkgName" class="caption collapser" onclick="toggleSection('i:BinPkgName')">Instances</p><div id="section.i:BinPkgName" 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.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-32" class="link">Source</a></td><td class="doc empty"> </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-Data.html#t:Data">Data</a> <a href="Debian-Relation.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-32" class="link">Source</a></td><td class="doc empty"> </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.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-32" class="link">Source</a></td><td class="doc empty"> </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.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-32" class="link">Source</a></td><td class="doc empty"> </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.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-32" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Debian-Relation.html#t:PkgName">PkgName</a> <a href="Debian-Relation.html#t:BinPkgName">BinPkgName</a></span> <a href="src/Debian-Relation-Common.html#line-37" class="link">Source</a></td><td class="doc empty"> </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.html#t:BinPkgName">BinPkgName</a>)</span> <a href="src/Debian-Relation-Common.html#line-111" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Relations" class="def">Relations</a> = <a href="Debian-Relation.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">type</span> <a name="t:AndRelation" class="def">AndRelation</a> = [<a href="Debian-Relation.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.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">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.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.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.html#t:ArchitectureReq">ArchitectureReq</a>)</td><td class="doc empty"> </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.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty"> </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.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-60" class="link">Source</a></td><td class="doc empty"> </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.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty"> </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.html#t:Relation">Relation</a></span> <a href="src/Debian-Relation-Common.html#line-29" class="link">Source</a></td><td class="doc empty"> </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.html#t:Relation">Relation</a>)</span> <a href="src/Debian-Relation-Common.html#line-125" class="link">Source</a></td><td class="doc empty"> </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.html#t:OrRelation">OrRelation</a>)</span> <a href="src/Debian-Relation-Common.html#line-122" class="link">Source</a></td><td class="doc empty"> </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.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-Relation.html#t:Arch">Arch</a>)</td><td class="doc empty"> </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-Relation.html#t:Arch">Arch</a>)</td><td class="doc empty"> </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.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchitectureReq">ArchitectureReq</a></span> <a href="src/Debian-Relation-Common.html#line-70" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchitectureReq">ArchitectureReq</a>)</span> <a href="src/Debian-Relation-Common.html#line-131" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Arch" class="def">Arch</a> <a href="src/Debian-Arch.html#Arch" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Source" class="def">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:All" class="def">All</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Binary" class="def">Binary</a> <a href="Debian-Relation.html#t:ArchOS">ArchOS</a> <a href="Debian-Relation.html#t:ArchCPU">ArchCPU</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Arch" class="caption collapser" onclick="toggleSection('i:Arch')">Instances</p><div id="section.i:Arch" 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.html#t:Arch">Arch</a></span> <a href="src/Debian-Arch.html#line-39" class="link">Source</a></td><td class="doc empty"> </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-Data.html#t:Data">Data</a> <a href="Debian-Relation.html#t:Arch">Arch</a></span> <a href="src/Debian-Arch.html#line-39" class="link">Source</a></td><td class="doc empty"> </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.html#t:Arch">Arch</a></span> <a href="src/Debian-Arch.html#line-39" class="link">Source</a></td><td class="doc empty"> </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.html#t:Arch">Arch</a></span> <a href="src/Debian-Arch.html#line-39" class="link">Source</a></td><td class="doc empty"> </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.html#t:Arch">Arch</a></span> <a href="src/Debian-Arch.html#line-39" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ArchOS" class="def">ArchOS</a> <a href="src/Debian-Arch.html#ArchOS" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ArchOS" class="def">ArchOS</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ArchOSAny" class="def">ArchOSAny</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:ArchOS" class="caption collapser" onclick="toggleSection('i:ArchOS')">Instances</p><div id="section.i:ArchOS" 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.html#t:ArchOS">ArchOS</a></span> <a href="src/Debian-Arch.html#line-15" class="link">Source</a></td><td class="doc empty"> </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-Data.html#t:Data">Data</a> <a href="Debian-Relation.html#t:ArchOS">ArchOS</a></span> <a href="src/Debian-Arch.html#line-15" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchOS">ArchOS</a></span> <a href="src/Debian-Arch.html#line-15" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchOS">ArchOS</a></span> <a href="src/Debian-Arch.html#line-15" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchOS">ArchOS</a></span> <a href="src/Debian-Arch.html#line-15" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ArchCPU" class="def">ArchCPU</a> <a href="src/Debian-Arch.html#ArchCPU" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ArchCPU" class="def">ArchCPU</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ArchCPUAny" class="def">ArchCPUAny</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:ArchCPU" class="caption collapser" onclick="toggleSection('i:ArchCPU')">Instances</p><div id="section.i:ArchCPU" 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.html#t:ArchCPU">ArchCPU</a></span> <a href="src/Debian-Arch.html#line-25" class="link">Source</a></td><td class="doc empty"> </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-Data.html#t:Data">Data</a> <a href="Debian-Relation.html#t:ArchCPU">ArchCPU</a></span> <a href="src/Debian-Arch.html#line-25" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchCPU">ArchCPU</a></span> <a href="src/Debian-Arch.html#line-25" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchCPU">ArchCPU</a></span> <a href="src/Debian-Arch.html#line-25" class="link">Source</a></td><td class="doc empty"> </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.html#t:ArchCPU">ArchCPU</a></span> <a href="src/Debian-Arch.html#line-25" class="link">Source</a></td><td class="doc empty"> </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"> </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"> </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"> </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"> </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"> </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.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty"> </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.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="<= , ==, >= ," /></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.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty"> </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.html#t:VersionReq">VersionReq</a></span> <a href="src/Debian-Relation-Common.html#line-82" class="link">Source</a></td><td class="doc empty"> </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.html#t:VersionReq">VersionReq</a>)</span> <a href="src/Debian-Relation-Common.html#line-128" class="link">Source</a></td><td class="doc empty"> </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.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-Version-Common.html#t:DebianVersion">DebianVersion</a> -> <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 -> <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.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.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.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>
|