[GHC] #13371: instance selection too eager

GHC ghc-devs at haskell.org
Sat Mar 4 22:40:52 UTC 2017


#13371: instance selection too eager
-------------------------------------+-------------------------------------
        Reporter:  aavogt            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.2
  checker)                           |
      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 niteria):

 Broken GHC infers:

 {{{
 g_f :: forall (b :: k0) k c a. F a (Proxy b) => a -> c
 }}}
 , while the working one infers
 {{{
 g_f :: forall k (b :: k) c a. F a (Proxy b) => a -> c
 }}}

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


More information about the ghc-tickets mailing list