No deep inheritance?&nbsp; Then what&#39;s the problem?<br><br><span style="font-family: courier new,monospace;">module X where</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">class Foo a where foo :: a -&gt; String</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">module Y where</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">class Foo&#39; a where foo :: a -&gt; String</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">module Main where</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">import qualified X</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">import qualified Y</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">instance X.Foo Int where foo _ = &quot;X&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">instance Y.Foo&#39; Int where foo _ = &quot;Y&quot;</span><br><br>It is known that the first foo is referring to X.foo, and the second is referring to Y.foo.<br><br>In fact... come to think of it, there are actually no namespace problems.&nbsp; The instance syntax is just a little quirky, since you don&#39;t qualify the LHS, even if the name is only imported qualified.<br>
<br>Or is that not what you&#39;re referring to?<br><br>Luke<br><br><div class="gmail_quote">On Thu, Dec 4, 2008 at 5:43 PM, Jason Dusek <span dir="ltr">&lt;<a href="mailto:jason.dusek@gmail.com">jason.dusek@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> &nbsp;It&#39;s not that I like to have a lot of methods in a class, but<br>
 &nbsp;rather a lot of classes.<br>
<font color="#888888"><br>
--<br>
_jsn<br>
</font></blockquote></div><br>