
13 Apr
2012
13 Apr
'12
12:38 p.m.
Your constructor is called Node, not BinTree.
data BinTree a = Node a (BinTree a) (BinTree a) | EmptyNode
b1 = Node 3 EmptyNode EmptyNode
-R. Kyle Murphy
Sent from my phone.
On Apr 13, 2012 12:24 PM, "Kak Dod"
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
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners