<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Sep 29, 2009 at 7:40 PM, Olex P <span dir="ltr">&lt;<a href="mailto:hoknamahn@gmail.com">hoknamahn@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;">
Hi everyone,<br><br>Dumb question about declaring a function and type synonyms.<br>There are to different declarations of the same function:<br><br>attrNames :: String -&gt; AttrDict -&gt; [String]<br><br>attrNames :: AttrClass -&gt; AttrDict -&gt; AttrNames<br>

<br>First gives you the idea about exact types it expects (except AttrDict for which user has to take a look into the docs or sources) while the second one gives you the idea about meaning of parameters.<br>Both reasons make sense. The question is when which one should be used? I&#39;m using type synonyms everywhere and possibly without too much reasons... Maybe I should stop doing it? :)<br>
<br></blockquote><div><br>I like type synonyms. You can always look up what the type synonym boils down to, while the reverse cannot be done. Of course, some Haddock markup can also solve the problem.<br><br>Michael <br></div>
</div></div>