[Haskell-cafe] OOP'er with (hopefully) trivial questions.....

Miguel Mitrofanov miguelimo38 at yandex.ru
Tue Dec 18 04:56:33 EST 2007


> class Shape a where {
>    intersect :: Shape b => a -> b -> Bool
> }
> data Shape a = { intersect :: Shape b => a -> b -> Bool }
> in fact, the syntax is rather similar, too! :)

Um, well, and how are you going to implement it?


More information about the Haskell-Cafe mailing list