<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have not understood what the question is. Are you asking &quot;Why would<br>

one need functions of the form (Integral a) =&gt; ...a... if one can just<br>
use ...Integer... or ...Int... explicitly&quot;?<br></blockquote></div><br>To clarify, the problem Tsun is asking about is Ex. 9 (bonus) in <a href="http://www.cs.uu.nl/wiki/FP/Practicum#PracticumOne">http://www.cs.uu.nl/wiki/FP/Practicum#PracticumOne</a> . Define the following function<br>
<br>  toDigitsRevG :: (Integral a) =&gt; a -&gt; a -&gt; [a]<br><br>that takes a base and a value and outputs the reverse list of digits. The function must be total (modulo bottom) and thus work for any instance of Integral.<br>
<br>This is a first-year course, so I expect this to be a difficult problem for those seeing Haskell for the first time. That&#39;s why it&#39;s a bonus exercise. ;)<br><br>Regards,<br>