
#10905: Incorrect number of parameters in "role" errors -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: roles Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Incorrect | Test Case: warning at compile-time | ghci/scripts/T16030 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * testcase: => ghci/scripts/T16030 * status: new => closed * resolution: => fixed Comment: Replying to [comment:6 crockeea]:
The ticket as reported is really just about when the kind-roles should be printed, as that's the part I found confusing.
In that case, this ticket is fixed. The `T16030` test case provides a regression test for this, as it displays: {{{#!hs type role Foo1 phantom }}} When `-fprint-explicit-kinds` is disabled, and displays: {{{#!hs type role Foo1 nominal phantom }}} When `-fprint-explicit-kinds` is enabled. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10905#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler