[GHC] #14734: QuantifiedConstraints conflated with impredicative polymorphism?

GHC ghc-devs at haskell.org
Wed Feb 21 11:04:47 UTC 2018


#14734: QuantifiedConstraints conflated with impredicative polymorphism?
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.5
      Resolution:  invalid           |             Keywords:
                                     |  QuantifiedConstraints wipT2893
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 Iceland_jack):

 It would be nice to directly write `type a :- b = Dict (a => b)` rather
 than

 {{{#!hs
 class    (a => b) => Implies a b
 instance (a => b) => Implies a b

 type a :- b = Dict (Implies a b)
 }}}

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


More information about the ghc-tickets mailing list