<div>Hello,</div>
<div> </div>
<div>I would like to ask wheter there are other instances of the class Integral? And I would like to ask what the difference is between the following functions: SomeFunctionA :: (Integral a) => a -> a, SomeFunctionB (Integer a) => a -> a, SomeFunctionC (Int a) => a -> a.</div>
<div> </div>
<div>What I do know is, that the Int can have underflow and overflows, however I don't actually see the difference (and I can't really find a difference on Google as it gives me results that aren't really relevant to my question) between prefering to use an Integral a when I've already got an Integer. (Assuming I didn'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">http://www.zvon.org/other/haskell/Outputprelude/Integral_c.html</a>) has two instances)</div>
<div> </div>
<div>What I also know is that operatons on a Int is faster than operations on a Integral or Integer.</div>
<div> </div>
<div>Can someone explain to me what kind of advantages and disadvantages I would get when substituting SomeFunctionB for someFunctionA?</div>
<div> </div>
<div>Thank you for your help!</div>