Commit 218dead0 authored by's avatar
Browse files

Fix #8706, documenting that type operators are not promoted.

parent 312686c1
......@@ -6652,6 +6652,18 @@ See also <ulink url="">Trac #7347</ul
<title>Promoting type operators</title>
Type operators are <emphasis>not</emphasis> promoted to the kind level. Why not? Because
<literal>*</literal> is a kind, parsed the way identifiers are. Thus, if a programmer
tried to write <literal>Either * Bool</literal>, would it be <literal>Either</literal>
applied to <literal>*</literal> and <literal>Bool</literal>? Or would it be
<literal>*</literal> applied to <literal>Either</literal> and <literal>Bool</literal>.
To avoid this quagmire, we simply forbid promoting type operators to the kind level.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment