class MyShow a where myShow :: a -> Stringdata BinTree a = Leaf a | Node (BinTree a) (BinTree a) instance MyShow Int where MyShow _______________ = ___________________________________instance MyShow a => MyShow (BinTree a) where MyShow _______________ = ___________________________________ MyShow _______________ = ___________________________________
data Shape = Triangle Double Double | Rectangle Double Double | Circle Doublearea :: Shape -> Double area __________________________________________ area __________________________________________ area __________________________________________instance Eq Shape where (==) _________________ = ___________________________________instance Ord Shape where compare ______________ = ___________________________________instance Show Shape where show _________________ = ___________________________________ show _________________ = ___________________________________ show _________________ = ___________________________________