diff options
author | simonpj@microsoft.com <unknown> | 2008-02-28 12:11:06 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2008-02-28 12:11:06 +0000 |
commit | 1c8e62f6c68882f65140e3ed3049ac626cf3cb61 (patch) | |
tree | 95b4261e36d6d1a618793f97f293c06fcfc82ecb /compiler/codeGen/Bitmap.hs | |
parent | e618109e7d3f313ea334dd8f53803971fb99e797 (diff) | |
download | haskell-1c8e62f6c68882f65140e3ed3049ac626cf3cb61.tar.gz |
Fix Trac #2130: improve derived Ord for primmitive types
This patch does two things:
* (Minor): in TcGenDeriv.careful_compare_Case, test for less-than before
equality. This should reduce the number of dynamic tests, and also gives
more scope for optimisation, since less-than tells us more than equality.
* (More important): add special-case derived code for data types that are
simple wrappers of primitive types. See
Note [Comparision of primitive types]
This fixes Trac 2130.
However see also Trac #2132, which is not addressed here.
Diffstat (limited to 'compiler/codeGen/Bitmap.hs')
0 files changed, 0 insertions, 0 deletions