12 Oct
2014
12 Oct
'14
5:43 p.m.
Thanks for mentioning it; It saves a lot of copy & paste! On 12 Oct 2014, at 01:03, Nadir Sampaoli <nadirsampaoli@gmail.com> wrote:
To define an Ord instance you only need to implement compare because the other functions are derivable in terms of it. If you wany to explicitly implement max, a correct implementation could be: