Add warning for probable identities (fromIntegral and friends)
[ghc-hetmet.git] / docs / users_guide / flags.xml
index 9b26e49..c24d021 100644 (file)
              <entry><option>-XImplicitPrelude</option></entry>
            </row>
            <row>
+             <entry><option>-XRebindableSyntax</option></entry>
+             <entry>Employ <link linkend="rebindable-syntax">rebindable syntax</link></entry>
+             <entry>dynamic</entry>
+             <entry><option>-XNoRebindableSyntax</option></entry>
+           </row>
+           <row>
              <entry><option>-XNoMonomorphismRestriction</option></entry>
              <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
              <entry>dynamic</entry>
          </row>
 
           <row>
+            <entry><option>-fwarn-identities</option></entry>
+            <entry>warn about uses of Prelude numeric conversions that are probably
+                   the identity (and hence could be omitted)</entry>
+            <entry>dynamic</entry>
+            <entry><option>-fno-warn-identities</option></entry>
+          </row>
+
+          <row>
             <entry><option>-fwarn-implicit-prelude</option></entry>
             <entry>warn when the Prelude is implicitly imported</entry>
             <entry>dynamic</entry>
 
          <row>
            <entry><option>-fwarn-missing-import-lists</option></entry>
-           <entry>warn when explicit imports lack an import list</entry>
+           <entry>warn when an import declaration does not explicitly 
+                   list all the names brought into scope</entry>
            <entry>dynamic</entry>
            <entry><option>-fnowarn-missing-import-lists</option></entry>
          </row>
          </row>
 
          <row>
-           <entry><option>-fwarn-simple-patterns</option></entry>
-           <entry>warn about lambda-patterns that can fail</entry>
-           <entry>dynamic</entry>
-           <entry><option>-fno-warn-simple-patterns</option></entry>
-         </row>
-
-         <row>
            <entry><option>-fwarn-tabs</option></entry>
            <entry>warn if there are tabs in the source file</entry>
            <entry>dynamic</entry>
@@ -2545,6 +2553,12 @@ phase <replaceable>n</replaceable></entry>
              <entry>dynamic</entry>
              <entry>-</entry>
            </row>
+           <row>
+             <entry><option>-fno-ghci-sandbox</option></entry>
+             <entry>Turn off the GHCi sandbox. Means computations are run in teh main thread, rather than a forked thread.</entry>
+             <entry>dynamic</entry>
+             <entry>-</entry>
+           </row>
          </tbody>
        </tgroup>
       </informaltable>