<div dir="ltr">You can always put those helper functions in the class and then just not export them from the module.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 10:49 AM, Doug McIlroy <span dir="ltr">&lt;<a href="mailto:doug@cs.dartmouth.edu" target="_blank">doug@cs.dartmouth.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any strong reason why the where clause in an instance<br>
declaration cannot declare anything other than class<br>
operators? If not, I suggest relaxing the restriction.<br>
<br>
It is not unusual for declarations of class operators to<br>
refer to special auxiliary functions. Under current rules<br>
such functions have to be declared outside the scope in<br>
which they are used.<br>
<br>
Doug McIlroy<br>
<br>
_______________________________________________<br>
Haskell-prime mailing list<br>
<a href="mailto:Haskell-prime@haskell.org">Haskell-prime@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-prime" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-prime</a><br>
</blockquote></div><br></div>