When deriving Eq always use tag based comparisons for nullary constructors
Instead of producing auxiliary con2tag bindings we now rely on
dataToTag#, eliminating a fair bit of generated code.
Co-Authored-By:
Ben Gamari <ben@well-typed.com>
Showing
- compiler/GHC/Builtin/Names.hs 2 additions, 1 deletioncompiler/GHC/Builtin/Names.hs
- compiler/GHC/Data/List/SetOps.hs 2 additions, 1 deletioncompiler/GHC/Data/List/SetOps.hs
- compiler/GHC/Tc/Deriv/Generate.hs 169 additions, 215 deletionscompiler/GHC/Tc/Deriv/Generate.hs
- testsuite/tests/deriving/should_compile/T14682.stderr 0 additions, 2 deletionstestsuite/tests/deriving/should_compile/T14682.stderr
- testsuite/tests/perf/compiler/T18304.hs 1 addition, 1 deletiontestsuite/tests/perf/compiler/T18304.hs
Loading
Please register or sign in to comment