This file is indexed.

/usr/share/doc/libghc-crypto-numbers-doc/html/Crypto-Number-Polynomial.html is in libghc-crypto-numbers-doc 0.2.7-7build7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
<!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>Crypto.Number.Polynomial</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Crypto-Number-Polynomial.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-Number-Polynomial.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">crypto-numbers-0.2.7: Cryptographic numbers: functions and algorithms</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>BSD-style</td></tr><tr><th>Maintainer</th><td>Vincent Hanquez &lt;vincent@snarc.org&gt;</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>Good</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Crypto.Number.Polynomial</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">polynomial operations</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</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">data</span> <a href="#t:Monomial">Monomial</a> = <a href="#v:Monomial">Monomial</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:toList">toList</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; [<a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a>]</li><li class="src short"><a href="#v:fromList">fromList</a> :: [<a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a>] -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:addPoly">addPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:subPoly">subPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:mulPoly">mulPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:squarePoly">squarePoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:expPoly">expPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li><li class="src short"><a href="#v:divPoly">divPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; (<a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a>, <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a>)</li><li class="src short"><a href="#v:negPoly">negPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Monomial" class="def">Monomial</a> <a href="src/Crypto-Number-Polynomial.html#Monomial" class="link">Source</a> <a href="#t:Monomial" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Monomial" class="def">Monomial</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Monomial" class="caption collapser" onclick="toggleSection('i:Monomial')">Instances</p><div id="section.i:Monomial" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Monomial:Eq:1" class="instance expander" onclick="toggleSection('i:id:Monomial:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a></span> <a href="src/Crypto-Number-Polynomial.html#line-30" class="link">Source</a> <a href="#t:Monomial" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Monomial:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Monomial:Ord:2" class="instance expander" onclick="toggleSection('i:id:Monomial:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a></span> <a href="src/Crypto-Number-Polynomial.html#line-35" class="link">Source</a> <a href="#t:Monomial" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Monomial:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Monomial:Show:3" class="instance expander" onclick="toggleSection('i:id:Monomial:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a></span> <a href="src/Crypto-Number-Polynomial.html#line-41" class="link">Source</a> <a href="#t:Monomial" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Monomial:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h1 id="g:1">polynomial operations</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Polynomial" class="def">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#Polynomial" class="link">Source</a> <a href="#t:Polynomial" class="selflink">#</a></p><div class="subs instances"><p id="control.i:Polynomial" class="caption collapser" onclick="toggleSection('i:Polynomial')">Instances</p><div id="section.i:Polynomial" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Polynomial:Eq:1" class="instance expander" onclick="toggleSection('i:id:Polynomial:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></span> <a href="src/Crypto-Number-Polynomial.html#line-33" class="link">Source</a> <a href="#t:Polynomial" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Polynomial:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Polynomial:Show:2" class="instance expander" onclick="toggleSection('i:id:Polynomial:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a></span> <a href="src/Crypto-Number-Polynomial.html#line-44" class="link">Source</a> <a href="#t:Polynomial" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Polynomial:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:toList" class="def">toList</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; [<a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a>] <a href="src/Crypto-Number-Polynomial.html#toList" class="link">Source</a> <a href="#v:toList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:fromList" class="def">fromList</a> :: [<a href="Crypto-Number-Polynomial.html#t:Monomial">Monomial</a>] -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#fromList" class="link">Source</a> <a href="#v:fromList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:addPoly" class="def">addPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#addPoly" class="link">Source</a> <a href="#v:addPoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:subPoly" class="def">subPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#subPoly" class="link">Source</a> <a href="#v:subPoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mulPoly" class="def">mulPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#mulPoly" class="link">Source</a> <a href="#v:mulPoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:squarePoly" class="def">squarePoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#squarePoly" class="link">Source</a> <a href="#v:squarePoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:expPoly" class="def">expPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#expPoly" class="link">Source</a> <a href="#v:expPoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:divPoly" class="def">divPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; (<a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a>, <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a>) <a href="src/Crypto-Number-Polynomial.html#divPoly" class="link">Source</a> <a href="#v:divPoly" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:negPoly" class="def">negPoly</a> :: <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> -&gt; <a href="Crypto-Number-Polynomial.html#t:Polynomial">Polynomial</a> <a href="src/Crypto-Number-Polynomial.html#negPoly" class="link">Source</a> <a href="#v:negPoly" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>