
Thank you but
if I change the code like this:
data BinTree a = Node BinTree a BinTree a | EmptyBinTree deriving Show
b1 = Node 3 EmptyBinTreeEmptyBinTree
Then I am get this error:
bintree.hs:1:23:
`BinTree' is not applied to enough type arguments
Expected kind `?', but `BinTree' has kind `k0 -> *'
In the type `BinTree'
In the definition of data constructor `Node'
In the data type declaration for `BinTree'
Failed, modules loaded: none.
________________________________
From: Kyle Murphy
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