[GHC] #10858: Smaller generated Ord instances
GHC
ghc-devs at haskell.org
Wed Sep 9 10:48:44 UTC 2015
#10858: Smaller generated Ord instances
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: #9557 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by simonpj):
That `Note` looks plausible but ONLY if you recursively use `(<)` in the
implementation of `(<)`. But in the code you give above for `Ord` on
`ImportDecl` we seem to call `compare` recursively when implementing
`(<)`. So we are taking the hit described in the `Note`, but blowing up
the code much more than necessary!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10858#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list