
#10225: GHC does not specialize based on type equality -------------------------------------+------------------------------------- Reporter: yongqli | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by simonpj): Can you give a concrete example of what you mean? Does `f` need the fact that `(v ~ V2)`? If not, I'm surprised that the former is slower than the latter. Can you give a test case? The smaller the better Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10225#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler