[GHC] #12240: Common Sense for Type Classes

GHC ghc-devs at haskell.org
Wed Jun 29 00:47:53 UTC 2016


#12240: Common Sense for Type Classes
-------------------------------------+-------------------------------------
        Reporter:  Mathnerd314       |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Mathnerd314):

 This is a request to allow instance dispatch to make inferred types more
 specific. I still think this should compile, and I even have a GHC branch
 where it does.

 It is quite simple; you just have to change `tcMatchTys` to `tcUnifyTys`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12240#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list