Re: constructor name clashes

2003-10-09 Thread Steffen Mazanek
Hello. Also, when declaring named fields of a type, such as data Data1 = Data1{ok1::Bool} data Data2 = Data2{ok2::Bool} the field names for different type also have to be unique. All function declarations in a module have to be unique. And, e.g., the data constructor Data1 is a function with ty

constructor name clashes

2003-10-08 Thread Ben_Yu
Hi, all. I'm a newbie to Haskell so please bear with me if my questions sound silly. In coding Haskell, I feel very inconvenient that the name of data constructors for different types have to be different. Also, when declaring named fields of a type, such as data Data1 = Data1{ok1::Bool} data Da