[GHC] #15321: Typed holes in Template Haskell splices produce bewildering error messages

GHC ghc-devs at haskell.org
Fri Jun 29 12:22:26 UTC 2018


#15321: Typed holes in Template Haskell splices produce bewildering error messages
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Template Haskell  |              Version:  8.4.3
      Resolution:                    |             Keywords:  TypedHoles
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Tritlo):

 Oh my, this is bad, especially #15007. I wish that I'd known earlier!

 I think that the approach mentioned in comment:4 is the way to go for now,
 as the "include" in "Valid hole fits include" allow us to err on the side
 of omission, and I hope that we can add this ASAP.

 I'll then make sure to implement more comprehensive fix, as mentioned in
 comment:6 later.

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


More information about the ghc-tickets mailing list