<div class="gmail_quote">2009/11/27 Miguel Mitrofanov <span dir="ltr">&lt;<a href="mailto:miguelimo38@yandex.ru">miguelimo38@yandex.ru</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br><br>Tsunkiet Man wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello,<br> I would like to ask wheter there are other instances of the class Integral?<br></blockquote><br>
</div>Lots of them. You can define a few of them yourself, you know. </blockquote>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>Yes, I knew that =).</div></blockquote>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br><br></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">And I would like to ask what the difference is between the following functions: SomeFunctionA :: (Integral a) =&gt; a -&gt; a, <br>
</blockquote>
<div class="im"><br></div>Perfectly correct. 
<div class="im"><br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">SomeFunctionB (Integer a) =&gt; a -&gt; a, SomeFunctionC (Int a) =&gt; a -&gt; a.<br></blockquote><br></div>
Both incorrect.<br><br>Integral is a class, but Integer and Int are types. 
<div class="im"><br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">What I do know is, that the Int can have underflow and overflows, however I don&#39;t actually see the difference (and I can&#39;t really find a difference on Google as it gives me results that aren&#39;t really relevant to my question) between prefering to use an Integral a when I&#39;ve already got an Integer.<br>
</blockquote><br></div>Sorry, didn&#39;t understand your question.</blockquote>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>Was not really a question ^_^</div></blockquote>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"> <br>
<div class="im">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">(Assuming I didn&#39;t missed the definiton of a Integral, which has by definition (I looked it up on Google: <a href="http://www.zvon.org/other/haskell/Outputprelude/Integral_c.html" target="_blank">http://www.zvon.org/other/haskell/Outputprelude/Integral_c.html</a>) has two instances)<br>
</blockquote><br></div>No. It makes no sense to say &quot;by definition ... has that number of instances&quot;. Instances of class are not included in it&#39;s definition and could be defined separately. </blockquote>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>Ah I see!</div></blockquote>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br><br></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Can someone explain to me what kind of advantages and disadvantages I would get when substituting SomeFunctionB for someFunctionA?<br>
</blockquote>
<div class="im"><br></div>Working program would certainly be an advantage.</blockquote>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">What if it both works? Should I take the &quot;highest level&quot;? <br></blockquote>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">Thank you for your help!<br><br><br></div>------------------------------------------------------------------------<br><br>_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></blockquote></div>
<div>This is actually all related to my homework problem which I can&#39;t seem to get a usefull answer out. Cause it tells me that a definition with Integrals would be much more general. It can support other instances of the class Integral. And then it asks me what the difference the definition has, actually it has none. Because I only use functions in de Prelude that are defined for Integrals.</div>

<div> </div>
<div>Correct me if I&#39;m wrong with this =).</div>
<div> </div>
<div>I don&#39;t really understand how I should answer this homework question as it makes no sense in my opinion give me the answer and then asking me the question xD.</div>
<div> </div>
<div>Thanks for your quick response!<br></div>