<div dir="ltr"><div>Hi, </div><div><br></div><div>I was writing some code for Tree. </div><div><br></div><div>1 : data Tree a = NULL | Node a (Tree a) (Tree a)   works fine. But,</div><div>2  : data Tree a = NULL | Tree a (Node a) Tree a does not work. GHCI says Not in scope " type constructor or class 'Node'.   </div><div><br></div><div>Why is 2 declaration not valid though second definition looks much more closer to what a binary tree actually means ?  </div><br clear="all"><div><br></div>Regards<br><div class="gmail_signature">Nishant Verma </div>
</div>