Commit 36035d87 authored by unknown's avatar unknown
Browse files

Better docs for MINIMAL

parent 9bd36664
......@@ -9230,7 +9230,14 @@ mindef ::= name
<para>A vertical bar denotes disjunction, i.e. one of the two sides is required.
A comma denotes conjunction, i.e. both sides are required.
Conjunction binds stronger than disjunction.</para>
<para>If no MINIMAL pragma is used, then all methods without a default will be required, excluding methods with a name that starts with an underscore.</para>
If no MINIMAL pragma is given in the class declaration, it is just as if
a pragma <literal>{-# MINIMAL op1, op2, ..., opn #-}</literal> was given, where
the <literal>opi</literal> are the methods
(a) that lack a default method in the class declaration, and
(b) whose name that does not start with an underscore
(c.f. <option>-fwarn-missing-methods</option>, <xref linkend="options-sanity"/>).
<para>This warning can be turned off with the flag <option>-fno-warn-missing-methods</option>.</para>
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