[GHC] #14824: automatically select instance

GHC ghc-devs at haskell.org
Wed Feb 21 13:41:17 UTC 2018


#14824: automatically select instance
-------------------------------------+-------------------------------------
        Reporter:  zaoqi             |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      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:                    |
-------------------------------------+-------------------------------------
Description changed by zaoqi:

Old description:

> There is
> {{{#!hs
> class C a b where m :: [a] -> b
> instance C x0 x0
> instance C x1 x2
> instance C x0 x3
> }}}
> x0 x1 x2 x3 are Types.
> FunctionalDependencies can't work.

New description:

 There is
 {{{#!hs
 class C a b where m :: [a] -> b
 instance C X0 X0
 instance C X1 X2
 instance C X0 X3
 }}}
 FunctionalDependencies can't work.

--

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


More information about the ghc-tickets mailing list