[Haskell-beginners] error: Not in scope: data constructor `BinTree'

Kak Dod kak.dod2008 at yahoo.com
Fri Apr 13 18:23:04 CEST 2012


if i compile the following code I get "bintree.hs:3:13: Not in scope: data constructor `BinTree'"


data BinTree a = Node BinTree a BinTree a | EmptyBinTree deriving Show

b1 = (Node (BinTree 3) EmptyBinTree)


please help

-kak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120414/d99aa5e7/attachment.htm>


More information about the Beginners mailing list