[GHC] #16287: :kind accepts bogus type

GHC ghc-devs at haskell.org
Mon Mar 4 18:51:01 UTC 2019


#16287: :kind accepts bogus type
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  ghci/should_fail/T16287
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |  https://gitlab.haskell.org/ghc/ghc/merge_requests/293
-------------------------------------+-------------------------------------

Comment (by Marge Bot <ben+marge-bot@…>):

 In [changeset:"c07e7ecbdfc05429fb6ce84c547c0365d2754db7/ghc" c07e7ec/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="c07e7ecbdfc05429fb6ce84c547c0365d2754db7"
 Fix #16287 by checking for more unsaturated synonym arguments

 Trac #16287 shows that we were checking for unsaturated type synonym
 arguments (in `:kind`) when the argument was to a type synonym, but
 _not_ when the argument was to some other form of type constructor,
 such as a data type. The solution is to use the machinery that
 rejects unsaturated type synonym arguments (previously confined to
 `check_syn_tc_app`) to `check_arg_type`, which checks these other
 forms of arguments. While I was in town, I cleaned up
 `check_syn_tc_app` a bit to only invoke `check_arg_type` so as to
 minimize the number of different code paths that that function could
 go down.
 }}}

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


More information about the ghc-tickets mailing list