Ticket #7410 (closed bug: fixed)
Type error says that tuple components have kind (* -> *)
Description
Prelude Data.Map> :kind (,) (,) :: * -> * -> *
The following type error says that the second argument to (,) should have kind * -> *, which isn't true.
Prelude> :m +Data.Map
Prelude Data.Map> :kind (Map Int, Int)
<interactive>:1:11:
The second argument of a tuple should have kind `* -> *',
but `Int' has kind `*'
In a type in a GHCi command: (Map Int, Int)
Now it can't make up its mind:
Prelude Data.Map> :kind (Int, Map Int)
<interactive>:1:7:
Expecting one more argument to `Map Int'
The second argument of a tuple should have kind `*',
but `Map Int' has kind `* -> *'
In a type in a GHCi command: (Int, Map Int)
Change History
Note: See
TracTickets for help on using
tickets.
