[GHC] #12600: Overloaded method causes insufficient specialization
GHC
ghc-devs at haskell.org
Thu Dec 8 02:34:12 UTC 2016
#12600: Overloaded method causes insufficient specialization
-------------------------------------+-------------------------------------
Reporter: akio | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nfrisby):
With GHC 7.10.2, adding another method to the class results in `foo` being
as specialized as expected. I therefore suspect this ticket is due to the
Specialise pass interacting poorly with casts (dictionaries for classes
with one method and no superclasses are implemented as a newtype).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12600#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list