Commit ffd7da35 authored by's avatar

Document the Negative Literals extension

parent ef739635
......@@ -440,6 +440,21 @@ Indeed, the bindings can even be recursive.
<sect2 id="negative-literals">
<title>Negative Literals</title>
The literal <literal>-123</literal> is, according to
Haskell98 and Haskell 2010, desugared as
<literal>negate (fromInteger 123)</literal>.
The language extension <option>-XNegativeLiterals</option>
means that it is instead desugared as
<literal>fromInteger (-123)</literal>.
<!-- ====================== HIERARCHICAL MODULES ======================= -->
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment