any working operator overloading example in haskell
问题 I want to overload any operator . i want to do such a simple function that for instance think about overloading of == operator .Overload == such that x==y returns x . Or x==y return x+y. It doesn't matter what . Can you show me any simple operator overloading example? I cannot find any example on the web unfortunately. For example;when i call Tree a == Tree a return 5 (it always return 5. I select it ,it is not related to any thing) or when i call 3==4 return : 7 I tried the below codes(i