[GHC] #11466: Constraint synonym with Implicit Parameter

GHC ghc-devs at haskell.org
Tue Aug 23 20:39:55 UTC 2016


#11466: Constraint synonym with Implicit Parameter
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler (Type    |              Version:  8.1
  checker)                           |
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  polykinds/T11466
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 {{{
 instance ?x::Int => Eq T
 }}}
 No it should not be allowed!  Instances are resolved in unpredicatable
 places, which is incompatible with knowing exactly which `?x` is used.

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


More information about the ghc-tickets mailing list