Hello,
I had a question about type classes and data types. I want to create one
class that has a function which depends upon a parameter from another
class. I would assume that this can be done, but I can't seem to write
code that does it. Can anybody tell me what is wrong? Here is an example
Hello Chaim,
Tuesday, January 29, 2008, 7:26:25 PM, you wrote:
your approach is completely wrong (OOP-inspired, but haskell isn't OOP
language). type class is common interface to different types. just for
example:
data BinState = On | Off
data BinChange = OnToOff | OffToOn
class MinValue a