seek help with overlapping instances

1999-08-19 Thread Marko Schuetz
I have something similar to > class (Eq a) => Substitutable a where > match :: a -> a -> Maybe (Substitution a) > applySubst :: Substitution a -> a -> a and two Types Type1, Type2, both of which are instances of class Substitutable. In some places there is a sigma :: Substitution Type1 (or a

RE: seek help with overlapping instances

1999-08-19 Thread Mark P Jones
Hi Marko, | I have something similar to | | > class (Eq a) => Substitutable a where | > match :: a -> a -> Maybe (Substitution a) | > applySubst :: Substitution a -> a -> a | | and two Types Type1, Type2, both of which are instances of class | Substitutable. ... but defining | | > instance S