[GHC] #12468: GADTs don't refine hole types

GHC ghc-devs at haskell.org
Thu Aug 11 16:22:33 UTC 2016


#12468: GADTs don't refine hole types
-------------------------------------+-------------------------------------
        Reporter:  benjamin.hodgson  |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 > However, I do think it would still be helpful to have some indicator in
 the error message of the fact that the context gives us an equality. After
 all, such information can be very useful when you're trying to fill in a
 hole.  Something along the lines of:

 Yes, that's plausible and do-able; along the lines of displaying the
 "relevant bindings".  Does anyone want to have a go?

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


More information about the ghc-tickets mailing list