[GHC] #15330: Error message prints invisible kind arguments in a visible matter

GHC ghc-devs at haskell.org
Mon Jul 2 15:34:35 UTC 2018


#15330: Error message prints invisible kind arguments in a visible matter
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler (Type    |              Version:  8.4.3
  checker)                           |
      Resolution:                    |             Keywords:  TypeInType
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 RyanGlScott):

 That sounds good to me. Two remaining questions:

 * How should we print `InvisATM`-tagged types when `-fprint-explicit-
 kinds` is enabled? Using the above example, should it be `f Bool 'True` or
 `f @Bool 'True`? Should `-dsuppress-type-applications` enter the picture
 somewhere?
 * Would we need to pretty-print `VisDepATM`-tagged types differently from
 `VanillaATM`-tagged ones? That is, why should we distinguish `VisDepATM`
 at all?

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


More information about the ghc-tickets mailing list