Ticket #5771 (closed bug: fixed)
Confusing printout with PolyKinds
| Reported by: | goldfire | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Compiler | Version: | 7.4.1-rc1 |
| Keywords: | PolyKinds | Cc: | andy@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Other | Difficulty: | Unknown |
| Test Case: | polykinds/T5771 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
If I load the following into ghci:
{-# LANGUAGE TypeFamilies,
PolyKinds
#-}
type family Foo a
and then get the info on Foo, I get the following printout:
type family Foo k a :: *
It seems that ghc is inserting the kind variable k into the name of the type function Foo. Perhaps this was intended, but it seems counter-intuitive. A kind of * is also sometimes printed in different situations when compiling with PolyKinds.
Change History
Note: See
TracTickets for help on using
tickets.
