/usr/share/doc/libghc-maths-doc/html/src/Math-Common-IntegerAsType.html is in libghc-maths-doc 0.4.8-4build1.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->
<title>Math/Common/IntegerAsType.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>-- Copyright (c) David Amos, 2009. All rights reserved.</span>
<a name="line-2"></a>
<a name="line-3"></a><span class='hs-comment'>{-# LANGUAGE EmptyDataDecls, ScopedTypeVariables #-}</span>
<a name="line-4"></a>
<a name="line-5"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Math</span><span class='hs-varop'>.</span><span class='hs-conid'>Common</span><span class='hs-varop'>.</span><span class='hs-conid'>IntegerAsType</span> <span class='hs-keyword'>where</span>
<a name="line-6"></a>
<a name="line-7"></a><a name="IntegerAsType"></a><span class='hs-keyword'>class</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-varid'>a</span> <span class='hs-keyword'>where</span>
<a name="line-8"></a> <span class='hs-varid'>value</span> <span class='hs-keyglyph'>::</span> <span class='hs-varid'>a</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>Integer</span>
<a name="line-9"></a>
<a name="line-10"></a><a name="M"></a><span class='hs-comment'>-- multiplication of IntegerAsType</span>
<a name="line-11"></a><a name="M"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>M</span> <span class='hs-varid'>a</span> <span class='hs-varid'>b</span> <span class='hs-keyglyph'>=</span> <span class='hs-conid'>M</span> <span class='hs-varid'>a</span> <span class='hs-varid'>b</span>
<a name="line-12"></a><a name="instance%20IntegerAsType%20(M%20a%20b)"></a><span class='hs-keyword'>instance</span> <span class='hs-layout'>(</span><span class='hs-conid'>IntegerAsType</span> <span class='hs-varid'>a</span><span class='hs-layout'>,</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-varid'>b</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>=></span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-layout'>(</span><span class='hs-conid'>M</span> <span class='hs-varid'>a</span> <span class='hs-varid'>b</span><span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-13"></a> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-varid'>value</span> <span class='hs-layout'>(</span><span class='hs-varid'>undefined</span> <span class='hs-keyglyph'>::</span> <span class='hs-varid'>a</span><span class='hs-layout'>)</span> <span class='hs-varop'>*</span> <span class='hs-varid'>value</span> <span class='hs-layout'>(</span><span class='hs-varid'>undefined</span> <span class='hs-keyglyph'>::</span> <span class='hs-varid'>b</span><span class='hs-layout'>)</span>
<a name="line-14"></a>
<a name="line-15"></a><a name="TMinus1"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>TMinus1</span>
<a name="line-16"></a><a name="instance%20IntegerAsType%20TMinus1"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>TMinus1</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-comment'>-</span><span class='hs-num'>1</span>
<a name="line-17"></a>
<a name="line-18"></a><a name="TZero"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>TZero</span>
<a name="line-19"></a><a name="instance%20IntegerAsType%20TZero"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>TZero</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>0</span>
<a name="line-20"></a>
<a name="line-21"></a><a name="TOne"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>TOne</span>
<a name="line-22"></a><a name="instance%20IntegerAsType%20TOne"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>TOne</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>1</span>
<a name="line-23"></a>
<a name="line-24"></a><a name="T2"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T2</span>
<a name="line-25"></a><a name="instance%20IntegerAsType%20T2"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T2</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>2</span>
<a name="line-26"></a>
<a name="line-27"></a><a name="T3"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T3</span>
<a name="line-28"></a><a name="instance%20IntegerAsType%20T3"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T3</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>3</span>
<a name="line-29"></a>
<a name="line-30"></a><a name="T5"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T5</span>
<a name="line-31"></a><a name="instance%20IntegerAsType%20T5"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T5</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>5</span>
<a name="line-32"></a>
<a name="line-33"></a><a name="T7"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T7</span>
<a name="line-34"></a><a name="instance%20IntegerAsType%20T7"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T7</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>7</span>
<a name="line-35"></a>
<a name="line-36"></a><a name="T11"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T11</span>
<a name="line-37"></a><a name="instance%20IntegerAsType%20T11"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T11</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>11</span>
<a name="line-38"></a>
<a name="line-39"></a><a name="T13"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T13</span>
<a name="line-40"></a><a name="instance%20IntegerAsType%20T13"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T13</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>13</span>
<a name="line-41"></a>
<a name="line-42"></a><a name="T17"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T17</span>
<a name="line-43"></a><a name="instance%20IntegerAsType%20T17"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T17</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>17</span>
<a name="line-44"></a>
<a name="line-45"></a><a name="T19"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T19</span>
<a name="line-46"></a><a name="instance%20IntegerAsType%20T19"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T19</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>19</span>
<a name="line-47"></a>
<a name="line-48"></a><a name="T23"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T23</span>
<a name="line-49"></a><a name="instance%20IntegerAsType%20T23"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T23</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>23</span>
<a name="line-50"></a>
<a name="line-51"></a><a name="T29"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T29</span>
<a name="line-52"></a><a name="instance%20IntegerAsType%20T29"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T29</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>29</span>
<a name="line-53"></a>
<a name="line-54"></a><a name="T31"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T31</span>
<a name="line-55"></a><a name="instance%20IntegerAsType%20T31"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T31</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>31</span>
<a name="line-56"></a>
<a name="line-57"></a><a name="T37"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T37</span>
<a name="line-58"></a><a name="instance%20IntegerAsType%20T37"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T37</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>37</span>
<a name="line-59"></a>
<a name="line-60"></a><a name="T41"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T41</span>
<a name="line-61"></a><a name="instance%20IntegerAsType%20T41"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T41</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>41</span>
<a name="line-62"></a>
<a name="line-63"></a><a name="T43"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T43</span>
<a name="line-64"></a><a name="instance%20IntegerAsType%20T43"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T43</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>43</span>
<a name="line-65"></a>
<a name="line-66"></a><a name="T47"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T47</span>
<a name="line-67"></a><a name="instance%20IntegerAsType%20T47"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T47</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>47</span>
<a name="line-68"></a>
<a name="line-69"></a><a name="T53"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T53</span>
<a name="line-70"></a><a name="instance%20IntegerAsType%20T53"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T53</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>53</span>
<a name="line-71"></a>
<a name="line-72"></a><a name="T59"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T59</span>
<a name="line-73"></a><a name="instance%20IntegerAsType%20T59"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T59</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>59</span>
<a name="line-74"></a>
<a name="line-75"></a><a name="T61"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T61</span>
<a name="line-76"></a><a name="instance%20IntegerAsType%20T61"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T61</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>61</span>
<a name="line-77"></a>
<a name="line-78"></a><a name="T67"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T67</span>
<a name="line-79"></a><a name="instance%20IntegerAsType%20T67"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T67</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>67</span>
<a name="line-80"></a>
<a name="line-81"></a><a name="T71"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T71</span>
<a name="line-82"></a><a name="instance%20IntegerAsType%20T71"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T71</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>71</span>
<a name="line-83"></a>
<a name="line-84"></a><a name="T73"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T73</span>
<a name="line-85"></a><a name="instance%20IntegerAsType%20T73"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T73</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>73</span>
<a name="line-86"></a>
<a name="line-87"></a><a name="T79"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T79</span>
<a name="line-88"></a><a name="instance%20IntegerAsType%20T79"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T79</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>79</span>
<a name="line-89"></a>
<a name="line-90"></a><a name="T83"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T83</span>
<a name="line-91"></a><a name="instance%20IntegerAsType%20T83"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T83</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>83</span>
<a name="line-92"></a>
<a name="line-93"></a><a name="T89"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T89</span>
<a name="line-94"></a><a name="instance%20IntegerAsType%20T89"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T89</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>89</span>
<a name="line-95"></a>
<a name="line-96"></a><a name="T97"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>T97</span>
<a name="line-97"></a><a name="instance%20IntegerAsType%20T97"></a><span class='hs-keyword'>instance</span> <span class='hs-conid'>IntegerAsType</span> <span class='hs-conid'>T97</span> <span class='hs-keyword'>where</span> <span class='hs-varid'>value</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>=</span> <span class='hs-num'>97</span>
<a name="line-98"></a>
</pre></body>
</html>
|