From: Michael Orlitzky Date: Fri, 14 Apr 2017 04:00:17 +0000 (-0400) Subject: Use the derived instance for Ord and add a test case. X-Git-Tag: 0.4.0~16 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2fcbd5144dae4837b26638baa170ae97f3ee1ea2;hp=2fcbd5144dae4837b26638baa170ae97f3ee1ea2;p=hath.git Use the derived instance for Ord and add a test case. There was a bug in my implementation of Ord for Octets that was pointed out by Michael McKibben. As a result, the octets corresponding to (for example) 2 and 4 would compare incorrectly. This is fixed by simply adopting the derived Ord instance for Octets. Why didn't I do that in the first place? With the bug fixed, I've added a QuickCheck property to ensure that the Ord instances for Octet and Int agree when the Int is between 0 and 255. ---