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

GHC ghc-devs at haskell.org
Mon Jul 2 15:26:03 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 goldfire):

 How about this:

 {{{#!hs
 data Type = ...
           | AppTy AppTyMode Type Type
           | ...

 data AppTyMode
   = VanillaATM
   | InvisATM
   -- | VisDepATM   -- for visible dependent application, which will be
 available outside
                    -- TyConApps with https://github.com/ghc-proposals/ghc-
 proposals/pull/81
 }}}

 Every `AppTy` then gets tagged, at creation. `IfaceAppTy` naturally would
 get the same tags. I think `AppTy`s aren't all that common, so the extra
 word shouldn't be so bad.

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


More information about the ghc-tickets mailing list