Skip to content
Snippets Groups Projects
Commit bc62cdd8 authored by Richard Eisenberg's avatar Richard Eisenberg Committed by Austin Seipp
Browse files

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

(cherry picked from commit 218dead0)
parent 6e3feefb
No related branches found
No related tags found
No related merge requests found
...@@ -6652,6 +6652,18 @@ See also <ulink url="http://ghc.haskell.org/trac/ghc/ticket/7347">Trac #7347</ul ...@@ -6652,6 +6652,18 @@ See also <ulink url="http://ghc.haskell.org/trac/ghc/ticket/7347">Trac #7347</ul
</para> </para>
</sect2> </sect2>
<sect2>
<title>Promoting type operators</title>
<para>
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.
</para>
</sect2>
</sect1> </sect1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment