I was interested to know about declaring an Ord
instance for (a,b)
, and I would like to quickly look through the hackers to confirm my intuition that the comparison is first on a
, and then, in case of equality, on b
. In particular, I went here . Since hackers have links to the source code for declarations and data functions, I assumed that there will also be source code for instance declarations, but I can not find them. Is there a reason why they are not there, or I just did not look complicated enough? type Answer = Either Explanation Directions
:)
Boris source share