[GHC] #14273: Typed holes' "valid substitutions" suggestions are oblivious to type class constraints

GHC ghc-devs at haskell.org
Mon Sep 25 19:58:59 UTC 2017


#14273: Typed holes' "valid substitutions" suggestions are oblivious to type class
constraints
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.3
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9091             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Tritlo):

 I'll have a look at the incorrect suggestions!

 About the missing constraint: if you add the -fshow-hole-constraints flag,
 you'll get a "Constraints include" part in the hole's type error message.
 Maybe it should be on by default?

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


More information about the ghc-tickets mailing list