2009/1/23 Brandon S. Allbery KF8NH <allbery@ece.cmu.edu>
On 2009 Jan 23, at 17:58, Olex P wrote:class Vector v where
(^+^) :: v -> v -> vclass Matrix m where
(^+^) :: m -> m -> mYou can't reuse the same operator in different classes. Vector "owns" (^+^), so Matrix can't use it itself. You could say> instance Matrix m => Vector m where> (^+^) = ...