<div dir="ltr">Is the definition of Branch correct though, shouldn't it be Branch (Tree a b) (Tree a b) ...?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2015 at 16:10, emacstheviking <span dir="ltr"><<a href="mailto:objitsu@gmail.com" target="_blank">objitsu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">a = left b = right<div><br></div><div><div>That would at least make the sentiment clearer.</div><div><br></div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2015 at 15:10,  <span dir="ltr"><<a href="mailto:jamb@hinojosa.com" target="_blank">jamb@hinojosa.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How can I interpret the following data type declaration? The book where I am studying (and other sources I have read as well) only show more simple examples. This is what I can say about it:<br>
<br>
* "Tree" is the name of the new type.<br>
* "Branch" and "Leaf" are the type constructors.<br>
* What is "a" and "b"?<br>
* It seems to me that this type is kind of "recursively" defined but I do not know exactly.<br>
<br>
<br>
data Tree a b = Branch b (Tree a b) (Tree a b)<br>
              | Leaf a<br>
<br>
I will very much appreciate your feedback.<br>
<br>
Regards,<br>
JAMB<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>