
Hi Roelof,
I think you misunderstood it.
There are two things here: types and values (value-constructors). They
exist in different world, not touching each other.
In Haskell, you define a type as:
data
Hello,
Suppose we have this definition of a tree :
data MessageTree = Leaf | Node MessageTree LogMessage MessageTree deriving (Show, Eq)
let Message = LogMessage "E 1 this is a test error" let Message = LogMessage "e 2 this is the second test error "
As I understand it right I can make the first entry like this : first_entry = Node Messagetree Message Messagetree
And the second one like this second_entry = Node Message Messagetree Message2 Messagetree ??
Roelof
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners