flags.xml 132 KB
Newer Older
1
<?xml version="1.0" encoding="iso-8859-1"?>
dterei's avatar
dterei committed
2
3
<sect1 id="flag-reference">
  <title>Flag reference</title>
4

dterei's avatar
dterei committed
5
  <para>This section is a quick-reference for GHC's command-line
6
    flags.  For each flag, we also list its static/dynamic status (see
7
    <xref linkend="static-dynamic-flags"/>), and the flag's opposite
8
9
    (if available).</para>

dterei's avatar
dterei committed
10
  <sect2>
11
    <title>Verbosity options</title>
12

Simon Peyton Jones's avatar
Simon Peyton Jones committed
13
14
    <para>More details in <xref linkend="options-help"/></para>

15
    <informaltable>
16
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
dterei's avatar
dterei committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-v</option></entry>
            <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-v</option><replaceable>n</replaceable></entry>
            <entry>set verbosity level</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
39
            <entry><option>-fprint-explicit-foralls</option></entry>
40
            <entry>Print explicit <literal>forall</literal> quantification in types. See also <option>-XExplicitForAll</option></entry>
41
42
            <entry>dynamic</entry>
            <entry>-fno-print-explicit-foralls</entry>
dterei's avatar
dterei committed
43
44
          </row>
          <row>
45
            <entry><option>-fprint-explicit-kinds</option></entry>
46
            <entry>Print explicit kind foralls and kind arguments in types. See also <option>-XKindSignature</option></entry>
47
48
            <entry>dynamic</entry>
            <entry>-fno-print-explicit-kinds</entry>
dterei's avatar
dterei committed
49
          </row>
50
51
52
53
54
55
          <row>
            <entry><option>-fprint-unicode-syntax</option></entry>
            <entry>Use unicode syntax when printing expressions, types and kinds. See also <option>-XUnicodeSyntax</option></entry>
            <entry>dynamic</entry>
            <entry>-fno-print-unicode-syntax</entry>
          </row>
dterei's avatar
dterei committed
56
57
58
          <row>
            <entry><option>-ferror-spans</option></entry>
            <entry>output full span in error messages</entry>
59
            <entry>dynamic</entry>
dterei's avatar
dterei committed
60
61
62
63
64
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-H</option><replaceable>size</replaceable></entry>
            <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
65
            <entry>dynamic</entry>
dterei's avatar
dterei committed
66
67
68
69
70
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-Rghc-timing</option></entry>
            <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
71
            <entry>dynamic</entry>
dterei's avatar
dterei committed
72
73
74
75
76
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
77

dterei's avatar
dterei committed
78
79
  </sect2>
  <sect2>
80
    <title>Alternative modes of operation</title>
dterei's avatar
dterei committed
81

Simon Peyton Jones's avatar
Simon Peyton Jones committed
82
    <para>More details in <xref linkend="modes"/></para>
dterei's avatar
dterei committed
83
84
85
86

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
87
          <row>
dterei's avatar
dterei committed
88
89
90
91
92
93
94
95
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
96
            <entry><option>--help</option>,<option>-?</option></entry>
97
            <entry>Display help</entry>
dterei's avatar
dterei committed
98
99
100
            <entry>mode</entry>
            <entry>-</entry>
          </row>
101

dterei's avatar
dterei committed
102
          <row>
103
104
105
            <entry><option>--interactive</option></entry>
            <entry>Interactive mode - normally used by just running <command>ghci</command>;
              see <xref linkend="ghci"/> for details.</entry>
dterei's avatar
dterei committed
106
107
108
109
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
110
111
112
            <entry><option>--make</option></entry>
            <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
              see <xref linkend="make-mode"/> for details..</entry>
dterei's avatar
dterei committed
113
114
115
116
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
117
118
119
120
            <entry><option>-e <replaceable>expr</replaceable></option></entry>
            <entry>Evaluate <replaceable>expr</replaceable>;
              see <xref linkend="eval-mode"/> for details.</entry>
            <entry>mode</entry>
dterei's avatar
dterei committed
121
122
            <entry>-</entry>
          </row>
123

dterei's avatar
dterei committed
124
          <row>
125
126
127
            <entry><option>--show-iface</option></entry>
            <entry>Display the contents of an interface file.</entry>
            <entry>mode</entry>
dterei's avatar
dterei committed
128
            <entry>-</entry>
129
          </row>
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176

          <row>
            <entry><option>-M</option></entry>
            <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
              see <xref linkend="makefile-dependencies"/> for details.</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>


          <row>
            <entry><option>--supported-extensions</option>, <option>--supported-languages</option></entry>
            <entry>display the supported language extensions</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--show-options</option></entry>
            <entry>display the supported command line options</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--info</option></entry>
            <entry>display information about the compiler</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--version, -V</option></entry>
            <entry>display GHC version</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--numeric-version</option></entry>
            <entry>display GHC version (numeric only)</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--print-libdir</option></entry>
            <entry>display GHC library directory</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>

dterei's avatar
dterei committed
177
178
179
180
181
182
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
183
    <title>Which phases to run</title>
184

185
    <para><xref linkend="options-order"/></para>
dterei's avatar
dterei committed
186
187
188
189

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
190
          <row>
dterei's avatar
dterei committed
191
192
193
194
195
196
197
198
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
199
200
            <entry><option>-E</option></entry>
            <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
dterei's avatar
dterei committed
201
202
203
204
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
205
206
            <entry><option>-C</option></entry>
            <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
dterei's avatar
dterei committed
207
208
209
210
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
211
212
            <entry><option>-S</option></entry>
            <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
dterei's avatar
dterei committed
213
214
215
216
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
217
            <entry><option>-c</option></entry>
218
219
            <entry>Stop after generating object (<literal>.o</literal>) file</entry>
            <entry>mode</entry>
220
221
222
223
224
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
            <entry>Override default behaviour for source files</entry>
225
            <entry>dynamic</entry>
dterei's avatar
dterei committed
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Redirecting output</title>

    <para><xref linkend="options-output"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the suffix to use for intermediate C files</entry>
252
            <entry>dynamic</entry>
dterei's avatar
dterei committed
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
            <entry>set directory for interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the suffix to use for interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-o</option> <replaceable>filename</replaceable></entry>
            <entry>set output filename</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
            <entry>set directory for object files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
            <entry>set the filename in which to put the interface</entry>
            <entry>dynamic</entry>
            <entry></entry>
          </row>
          <row>
            <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the output file suffix</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
            <entry>redirect FFI stub files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dumpdir</option> <replaceable>dir</replaceable></entry>
            <entry>redirect dump files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-outputdir</option> <replaceable>dir</replaceable></entry>
            <entry>set output directory</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
308
          </row>
dterei's avatar
dterei committed
309
310
311
312
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>
313

dterei's avatar
dterei committed
314
315
  <sect2>
    <title>Keeping intermediate files</title>
316

dterei's avatar
dterei committed
317
    <para><xref linkend="keeping-intermediates"/></para>
318

dterei's avatar
dterei committed
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-keep-hc-file</option> or
              <option>-keep-hc-files</option></entry>
            <entry>retain intermediate <literal>.hc</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-llvm-file</option> or
              <option>-keep-llvm-files</option></entry>
            <entry>retain intermediate LLVM <literal>.ll</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-s-file</option> or
              <option>-keep-s-files</option></entry>
            <entry>retain intermediate <literal>.s</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-tmp-files</option></entry>
            <entry>retain all intermediate temporary files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Temporary files</title>

    <para><xref linkend="temp-files"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-tmpdir</option></entry>
            <entry>set the directory for temporary files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Finding imports</title>

    <para><xref linkend="search-path"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>

            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
            <entry>add <replaceable>dir</replaceable>,
              <replaceable>dir2</replaceable>, etc. to import path</entry>
410
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
411
412
413
414
415
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-i</option></entry>
            <entry>Empty the import directory list</entry>
416
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Interface file options</title>

    <para><xref linkend="hi-options"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>

            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-ddump-hi</option></entry>
            <entry>Dump the new interface to stdout</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-hi-diffs</option></entry>
            <entry>Show the differences vs. the old interface</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-minimal-imports</option></entry>
            <entry>Dump a minimal set of imports</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
            <entry>See <xref linkend="modes"/>.</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Recompilation checking</title>

    <para><xref linkend="recomp"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>

            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-fforce-recomp</option></entry>
487
488
489
            <entry>Turn off recompilation checking. This is implied by any
              <option>-ddump-X</option> option when compiling a single
              file (i.e. when using <literal>-c</literal>).</entry>
dterei's avatar
dterei committed
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
            <entry>dynamic</entry>
            <entry><option>-fno-force-recomp</option></entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2 id="interactive-mode-options">
    <title>Interactive-mode options</title>

    <para><xref linkend="ghci-dot-files"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry><option>-ignore-dot-ghci</option></entry>
            <entry>Disable reading of <filename>.ghci</filename> files</entry>
517
            <entry>dynamic</entry>
dterei's avatar
dterei committed
518
519
            <entry>-</entry>
          </row>
520
521
522
523
524
525
          <row>
            <entry><option>-ghci-script</option></entry>
            <entry>Read additional <filename>.ghci</filename> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
dterei's avatar
dterei committed
526
527
528
529
530
531
          <row>
            <entry><option>-fbreak-on-error</option></entry>
            <entry><link linkend="ghci-debugger-exceptions">Break on uncaught exceptions and errors</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-break-on-error</option></entry>
          </row>
532
533
534
535
536
537
          <row>
            <entry><option>-fbreak-on-exception</option></entry>
            <entry><link linkend="ghci-debugger-exceptions">Break on any exception thrown</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-break-on-exception</option></entry>
          </row>
dterei's avatar
dterei committed
538
          <row>
539
540
541
542
543
544
            <entry><option>-fghci-hist-size=<replaceable>n</replaceable></option></entry>
            <entry><link linkend="ghci-debugger">Set the number of entries GHCi keeps for <literal>:history</literal></link></entry>
            <entry>dynamic</entry>
            <entry><option>(default is 50)</option></entry>
          </row>
          <row>
dterei's avatar
dterei committed
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
            <entry><option>-fprint-evld-with-show</option></entry>
            <entry><link linkend="breakpoints">Enable usage of Show instances in <literal>:print</literal></link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-print-evld-with-show</option></entry>
          </row>
          <row>
            <entry><option>-fprint-bind-result</option></entry>
            <entry><link linkend="ghci-stmts">Turn on printing of binding results in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-print-bind-result</option></entry>
          </row>
          <row>
            <entry><option>-fno-print-bind-contents</option></entry>
            <entry><link linkend="breakpoints">Turn off printing of binding contents in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-implicit-import-qualified</option></entry>
            <entry><link linkend="ghci-import-qualified">Turn off
                implicit qualified import of everything in GHCi</link></entry>
            <entry>dynamic</entry>
567
568
569
570
571
572
573
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-interactive-print</option></entry>
            <entry><link linkend="ghci-interactive-print">Select the function
                    to use for printing evaluated expressions in GHCi</link></entry>
            <entry>dynamic</entry>
dterei's avatar
dterei committed
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
            <entry>-</entry>
          </row>

        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Packages</title>

    <para><xref linkend="packages"/></para>

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
          <row>
599
            <entry><option>-this-package-key</option> <replaceable>P</replaceable></entry>
dterei's avatar
dterei committed
600
            <entry>Compile to be part of package <replaceable>P</replaceable></entry>
601
            <entry>dynamic</entry>
dterei's avatar
dterei committed
602
603
604
605
606
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-package</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable></entry>
607
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
608
609
610
611
612
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hide-all-packages</option></entry>
            <entry>Hide all packages by default</entry>
613
            <entry>dynamic</entry>
dterei's avatar
dterei committed
614
615
616
617
618
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
            <entry>Hide package <replaceable>P</replaceable></entry>
619
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
620
621
622
623
624
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
            <entry>Ignore package <replaceable>P</replaceable></entry>
625
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
626
627
628
            <entry>-</entry>
          </row>
          <row>
629
630
            <entry><option>-package-db</option> <replaceable>file</replaceable></entry>
            <entry>Add <replaceable>file</replaceable> to the package db stack.</entry>
631
            <entry>dynamic</entry>
dterei's avatar
dterei committed
632
633
634
            <entry>-</entry>
          </row>
          <row>
635
            <entry><option>-clear-package-db</option></entry>
636
            <entry>Clear the package db stack.</entry>
637
            <entry>dynamic</entry>
638
639
640
641
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-global-package-db</option></entry>
642
            <entry>Remove the global package db from the stack.</entry>
643
            <entry>dynamic</entry>
644
645
646
647
648
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-global-package-db</option></entry>
            <entry>Add the global package db to the stack.</entry>
649
            <entry>dynamic</entry>
650
651
652
653
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-user-package-db</option></entry>
654
            <entry>Remove the user's package db from the stack.</entry>
655
            <entry>dynamic</entry>
656
657
658
659
660
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-user-package-db</option></entry>
            <entry>Add the user's package db to the stack.</entry>
661
            <entry>dynamic</entry>
dterei's avatar
dterei committed
662
663
664
665
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-auto-link-packages</option></entry>
666
            <entry>Don't automatically link in the base and rts packages.</entry>
dterei's avatar
dterei committed
667
668
669
670
671
672
673
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-trust</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable> and set it to be
              trusted</entry>
674
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
675
676
677
678
679
680
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-distrust</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable> and set it to be
              distrusted</entry>
681
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
682
683
684
685
686
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-distrust-all</option> </entry>
            <entry>Distrust all packages by default</entry>
687
            <entry>dynamic/<literal>:set</literal></entry>
dterei's avatar
dterei committed
688
689
690
691
692
693
694
695
696
697
698
699
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Language options</title>

    <para>Language options can be enabled either by a command-line option
      <option>-Xblah</option>, or by a <literal>{-# LANGUAGE blah #-}</literal>
700
701
      pragma in the file itself.  See <xref linkend="options-language"/>. Some
      options are enabled using <option>-f*</option> flags.</para>
dterei's avatar
dterei committed
702
703
704
705
706
707
708
709
710
711
712
713

    <informaltable>
      <tgroup cols="4" align="left" colsep="1" rowsep="1">
        <thead>
          <row>
            <entry>Flag</entry>
            <entry>Description</entry>
            <entry>Static/Dynamic</entry>
            <entry>Reverse</entry>
          </row>
        </thead>
        <tbody>
714
715
716
717
718
719
720
721
722
          <row>
            <entry><option>-fconstraint-solver-iterations=</option><replaceable>n</replaceable></entry>
	    <entry>Set the iteration limit for the type-constraint solver. 
                   The default limit is 4. Typically one iteration
                   suffices; so please yell if you find you need to set
                   it higher than the default. Zero means infinity. </entry>
	    <entry>dynamic</entry>
	    <entry></entry>
	  </row>
723
          <row>
724
            <entry><option>-freduction-depth=</option><replaceable>n</replaceable></entry>
725
726
	    <entry>Set the <link linkend="undecidable-instances">limit for type simplification</link>. 
                   Default is 200; zero means infinity.</entry>
727
728
729
730
	    <entry>dynamic</entry>
	    <entry></entry>
	  </row>
	  <row>
731
            <entry><option>-fcontext-stack=</option><replaceable>n</replaceable></entry>
732
            <entry>Deprecated. Use <option>-freduction-depth=</option><replaceable>n</replaceable> instead.</entry>
733
734
735
            <entry>dynamic</entry>
            <entry></entry>
          </row>
dterei's avatar
dterei committed
736
737
          <row>
            <entry><option>-fglasgow-exts</option></entry>
738
            <entry>Deprecated. Enable most language extensions; see <xref linkend="options-language"/> for exactly which ones.</entry>
dterei's avatar
dterei committed
739
740
741
742
            <entry>dynamic</entry>
            <entry><option>-fno-glasgow-exts</option></entry>
          </row>
          <row>
743
744
            <entry><option>-firrefutable-tuples</option></entry>
            <entry>Make tuple pattern matching irrefutable</entry>
dterei's avatar
dterei committed
745
            <entry>dynamic</entry>
746
            <entry><option>-fno-irrefutable-tuples</option></entry>
dterei's avatar
dterei committed
747
748
          </row>
          <row>
749
750
            <entry><option>-fpackage-trust</option></entry>
            <entry>Enable <link linkend="safe-haskell">Safe Haskell</link> trusted package requirement for trustworthy modules.</entry>
dterei's avatar
dterei committed
751
            <entry>dynamic</entry>
752
            <entry><option>-</option></entry>
dterei's avatar
dterei committed
753
          </row>
754
          <row>
755
            <entry><option>-ftype-function-depth=</option><replaceable>n</replaceable></entry>
756
            <entry>Deprecated. Use <option>-freduction-depth=</option><replaceable>n</replaceable> instead.</entry>
757
758
759
            <entry>dynamic</entry>
            <entry></entry>
          </row>
760
761
          <row>
            <entry><option>-XAllowAmbiguousTypes</option></entry>
762
            <entry>Allow the user to write <link linkend="ambiguity">ambiguous types</link>,
763
764
765
766
767
                   and the type inference engine to infer them.
                </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoAllowAmbiguousTypes</option></entry>
          </row>
dterei's avatar
dterei committed
768
769
770
771
772
773
774
          <row>
            <entry><option>-XArrows</option></entry>
            <entry>Enable <link linkend="arrow-notation">arrow
                notation</link> extension</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoArrows</option></entry>
          </row>
775
776
          <row>
            <entry><option>-XAutoDeriveTypeable</option></entry>
777
778
            <entry>As of GHC 7.10, this option is not needed, and should
                   not be used.  Automatically <link linkend="deriving-typeable">derive Typeable instances for every datatype and type class declaration</link>.
779
780
781
782
            Implies <option>-XDeriveDataTypeable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoAutoDeriveTypeable</option></entry>
          </row>
783
784
785
786
787
788
          <row>
            <entry><option>-XBangPatterns</option></entry>
            <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoBangPatterns</option></entry>
          </row>
789
790
791
792
793
794
          <row>
            <entry><option>-XBinaryLiterals</option></entry>
            <entry>Enable support for <link linkend="binary-literals">binary literals</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoBinaryLiterals</option></entry>
          </row>
795
796
797
798
799
800
801
802
803
804
805
806
          <row>
            <entry><option>-XCApiFFI</option></entry>
            <entry>Enable <link linkend="ffi-capi">the CAPI calling convention</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoCAPIFFI</option></entry>
          </row>
          <row>
            <entry><option>-XConstrainedClassMethods</option></entry>
            <entry>Enable <link linkend="class-method-types">constrained class methods</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoConstrainedClassMethods</option></entry>
          </row>
807
808
809
810
811
812
          <row>
            <entry><option>-XConstraintKinds</option></entry>
            <entry>Enable a <link linkend="constraint-kind">kind of constraints</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoConstraintKinds</option></entry>
          </row>
813
814
815
816
817
818
          <row>
            <entry><option>-XCPP</option></entry>
            <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoCPP</option></entry>
          </row>
819
820
821
822
823
824
          <row>
            <entry><option>-XDataKinds</option></entry>
            <entry>Enable <link linkend="promotion">datatype promotion</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDataKinds</option></entry>
          </row>
825
826
827
828
829
830
          <row>
            <entry><option>-XDefaultSignatures</option></entry>
            <entry>Enable <link linkend="class-default-signatures">default signatures</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDefaultSignatures</option></entry>
          </row>
831
832
833
834
835
836
837
          <row>
            <entry><option>-XDeriveAnyClass</option></entry>
            <entry>Enable <link linkend="derive-any-class">deriving for any
                   class</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveAnyClass</option></entry>
          </row>
838
839
          <row>
            <entry><option>-XDeriveDataTypeable</option></entry>
840
            <entry>Enable <link linkend="deriving-typeable">deriving for the Data class</link>.
841
              Implied by <option>-XAutoDeriveTypeable</option>.</entry>
842
843
844
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveDataTypeable</option></entry>
          </row>
845
846
847
848
849
850
851
852
853
854
855
856
857
858
          <row>
            <entry><option>-XDeriveFunctor</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Functor class</link>.
              Implied by <option>-XDeriveTraversable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveFunctor</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveFoldable</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Foldable class</link>.
              Implied by <option>-XDeriveTraversable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveFoldable</option></entry>
          </row>
859
860
861
862
863
864
865
          <row>
            <entry><option>-XDeriveGeneric</option></entry>
            <entry>Enable <link linkend="deriving-typeable">deriving for the Generic class</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveGeneric</option></entry>
          </row>
          <row>
866
867
868
            <entry><option>-XDeriveTraversable</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Traversable class</link>.
              Implies <option>-XDeriveFunctor</option> and <option>-XDeriveFoldable</option>.</entry>
869
            <entry>dynamic</entry>
870
            <entry><option>-XNoDeriveTraversable</option></entry>
871
          </row>
dterei's avatar
dterei committed
872
873
          <row>
            <entry><option>-XDisambiguateRecordFields</option></entry>
874
875
            <entry>Enable <link linkend="disambiguate-fields">record field disambiguation</link>.
              Implied by <option>-XRecordWildCards</option>.</entry>
dterei's avatar
dterei committed
876
877
878
            <entry>dynamic</entry>
            <entry><option>-XNoDisambiguateRecordFields</option></entry>
          </row>
879
880
          <row>
            <entry><option>-XEmptyCase</option></entry>
881
            <entry>Allow <link linkend="empty-case">empty case alternatives</link>.</entry>
882
883
884
            <entry>dynamic</entry>
            <entry><option>-XNoEmptyCase</option></entry>
          </row>
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
          <row>
            <entry><option>-XEmptyDataDecls</option></entry>
            <entry>Enable empty data declarations.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoEmptyDataDecls</option></entry>
          </row>
          <row>
            <entry><option>-XExistentialQuantification</option></entry>
            <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExistentialQuantification</option></entry>
          </row>
          <row>
            <entry><option>-XExplicitForAll</option></entry>
            <entry>Enable <link linkend="explicit-foralls">explicit universal quantification</link>.
              Implied by <option>-XScopedTypeVariables</option>,
              <option>-XLiberalTypeSynonyms</option>,
902
              <option>-XRankNTypes</option> and
903
904
905
906
907
908
909
910
911
912
913
914
915
              <option>-XExistentialQuantification</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExplicitForAll</option></entry>
          </row>
          <row>
            <entry><option>-XExplicitNamespaces</option></entry>
            <entry>Enable using the keyword <literal>type</literal> to specify the namespace of
                   entries in imports and exports (<xref linkend="explicit-namespaces"/>).
                   Implied by <option>-XTypeOperators</option> and <option>-XTypeFamilies</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExplicitNamespaces</option></entry>
          </row>
916
917
          <row>
            <entry><option>-XExtendedDefaultRules</option></entry>
918
            <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module.</entry>
919
920
921
            <entry>dynamic</entry>
            <entry><option>-XNoExtendedDefaultRules</option></entry>
          </row>
922
923
          <row>
            <entry><option>-XFlexibleContexts</option></entry>
924
925
            <entry>Enable <link linkend="flexible-contexts">flexible contexts</link>.
              Implied by <option>-XImplicitParams</option>.</entry>
926
927
928
929
930
931
            <entry>dynamic</entry>
            <entry><option>-XNoFlexibleContexts</option></entry>
          </row>
          <row>
            <entry><option>-XFlexibleInstances</option></entry>
            <entry>Enable <link linkend="instance-rules">flexible instances</link>.
932
              Implies <option>-XTypeSynonymInstances</option>. Implied by <option>-XImplicitParams</option>.</entry>
933
934
935
            <entry>dynamic</entry>
            <entry><option>-XNoFlexibleInstances</option></entry>
          </row>
dterei's avatar
dterei committed
936
937
          <row>
            <entry><option>-XForeignFunctionInterface</option></entry>
938
            <entry>Enable <link linkend="ffi">foreign function interface</link>.</entry>
dterei's avatar
dterei committed
939
940
941
            <entry>dynamic</entry>
            <entry><option>-XNoForeignFunctionInterface</option></entry>
          </row>
942
943
          <row>
            <entry><option>-XFunctionalDependencies</option></entry>
944
945
            <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.
              Implies <option>-XMultiParamTypeClasses</option>.</entry>
946
947
948
            <entry>dynamic</entry>
            <entry><option>-XNoFunctionalDependencies</option></entry>
          </row>
949
950
951
          <row>
            <entry><option>-XGADTs</option></entry>
            <entry>Enable <link linkend="gadt">generalised algebraic data types</link>.
952
              Implies <option>-XGADTSyntax</option> and <option>-XMonoLocalBinds</option>.</entry>
953
954
955
956
957
958
959
960
961
962
            <entry>dynamic</entry>
            <entry><option>-XNoGADTs</option></entry>
          </row>
          <row>
            <entry><option>-XGADTSyntax</option></entry>
            <entry>Enable <link linkend="gadt-style">generalised algebraic data type syntax</link>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGADTSyntax</option></entry>
          </row>
963
964
965
966
967
968
          <row>
            <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
            <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
          </row>
dterei's avatar
dterei committed
969
970
971
972
973
974
975
976
977
978
          <row>
            <entry><option>-XGenerics</option></entry>
            <entry>Deprecated, does nothing. No longer enables <link linkend="generic-classes">generic classes</link>.
              See also GHC's support for
              <link linkend="generic-programming">generic programming</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGenerics</option></entry>
          </row>
          <row>
            <entry><option>-XImplicitParams</option></entry>
979
980
            <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
              Implies <option>-XFlexibleContexts</option> and <option>-XFlexibleInstances</option>.</entry>
dterei's avatar
dterei committed
981
982
983
984
985
            <entry>dynamic</entry>
            <entry><option>-XNoImplicitParams</option></entry>
          </row>
          <row>
            <entry><option>-XNoImplicitPrelude</option></entry>
986
987
            <entry>Don't implicitly <literal>import Prelude</literal>.
              Implied by <option>-XRebindableSyntax</option>.</entry>
dterei's avatar
dterei committed
988
989
990
            <entry>dynamic</entry>
            <entry><option>-XImplicitPrelude</option></entry>
          </row>
991
992
          <row>
            <entry><option>-XImpredicativeTypes</option></entry>
993
994
            <entry>Enable <link linkend="impredicative-polymorphism">impredicative types</link>.
              Implies <option>-XRankNTypes</option>.</entry>
995
996
997
            <entry>dynamic</entry>
            <entry><option>-XNoImpredicativeTypes</option></entry>
          </row>
dterei's avatar
dterei committed
998
          <row>
999
1000
            <entry><option>-XIncoherentInstances</option></entry>
            <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
1001
              Implies <option>-XOverlappingInstances</option>.</entry>
dterei's avatar
dterei committed
1002
            <entry>dynamic</entry>
1003
            <entry><option>-XNoIncoherentInstances</option></entry>
dterei's avatar
dterei committed
1004
1005
          </row>
          <row>
1006
1007
            <entry><option>-XInstanceSigs</option></entry>
            <entry>Enable <link linkend="instance-sigs">instance signatures</link>.</entry>
dterei's avatar
dterei committed
1008
            <entry>dynamic</entry>
1009
            <entry><option>-XNoInstanceSigs</option></entry>
dterei's avatar
dterei committed
1010
1011
          </row>
          <row>
1012
1013
            <entry><option>-XInterruptibleFFI</option></entry>
            <entry>Enable interruptible FFI.</entry>
1014
            <entry>dynamic</entry>
1015
            <entry><option>-XNoInterruptibleFFI</option></entry>
1016
          </row>
dterei's avatar
dterei committed
1017
          <row>
1018
            <entry><option>-XKindSignatures</option></entry>
1019
1020
            <entry>Enable <link linkend="kinding">kind signatures</link>.
              Implied by <option>-XTypeFamilies</option> and <option>-XPolyKinds</option>.</entry>
dterei's avatar
dterei committed
1021
            <entry>dynamic</entry>
1022
            <entry><option>-XNoKindSignatures</option></entry>
dterei's avatar
dterei committed
1023
1024
          </row>
          <row>
1025
1026
            <entry><option>-XLambdaCase</option></entry>
            <entry>Enable <link linkend="lambda-case">lambda-case expressions</link>.</entry>
dterei's avatar
dterei committed
1027
            <entry>dynamic</entry>
1028
            <entry><option>-XNoLambdaCase</option></entry>
dterei's avatar
dterei committed
1029
1030
          </row>
          <row>
1031
1032
            <entry><option>-XLiberalTypeSynonyms</option></entry>
            <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
dterei's avatar
dterei committed
1033
            <entry>dynamic</entry>
1034
            <entry><option>-XNoLiberalTypeSynonyms</option></entry>
dterei's avatar
dterei committed
1035
1036
          </row>
          <row>
1037
1038
            <entry><option>-XMagicHash</option></entry>
            <entry>Allow "#" as a <link linkend="magic-hash">postfix modifier on identifiers</link>.</entry>
1039
            <entry>dynamic</entry>
1040
            <entry><option>-XNoMagicHash</option></entry>
1041
          </row>
dterei's avatar
dterei committed
1042
          <row>
1043
1044
            <entry><option>-XMonadComprehensions</option></entry>
            <entry>Enable <link linkend="monad-comprehensions">monad comprehensions</link>.</entry>
dterei's avatar
dterei committed
1045
            <entry>dynamic</entry>
1046
            <entry><option>-XNoMonadComprehensions</option></entry>
dterei's avatar
dterei committed
1047
1048
1049
1050
          </row>
          <row>
            <entry><option>-XMonoLocalBinds</option></entry>
            <entry>Enable <link linkend="mono-local-binds">do not generalise local bindings</link>.
1051
              Implied by <option>-XTypeFamilies</option> and <option>-XGADTs</option>.
dterei's avatar
dterei committed
1052
1053
1054
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMonoLocalBinds</option></entry>
1055
          </row>
1056
          <row>
1057
            <entry><option>-XNoMonomorphismRestriction</option></entry>
1058
            <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link>.</entry>
1059
            <entry>dynamic</entry>
1060
            <entry><option>-XMonomorphismRestriction</option></entry>
1061
1062
          </row>
          <row>
1063
            <entry><option>-XMultiParamTypeClasses</option></entry>
1064
1065
            <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.
              Implied by <option>-XFunctionalDependencies</option>.</entry>
1066
            <entry>dynamic</entry>
1067
            <entry><option>-XNoMultiParamTypeClasses</option></entry>
1068
          </row>
dterei's avatar
dterei committed
1069
          <row>
1070
1071
            <entry><option>-XMultiWayIf</option></entry>
            <entry>Enable <link linkend="multi-way-if">multi-way if-expressions</link>.</entry>
dterei's avatar
dterei committed
1072
            <entry>dynamic</entry>
1073
            <entry><option>-XNoMultiWayIf</option></entry>
dterei's avatar
dterei committed
1074
1075
          </row>
          <row>
1076
1077
            <entry><option>-XNamedFieldPuns</option></entry>
            <entry>Enable <link linkend="record-puns">record puns</link>.</entry>
dterei's avatar
dterei committed
1078
            <entry>dynamic</entry>
1079
            <entry><option>-XNoNamedFieldPuns</option></entry>
dterei's avatar
dterei committed
1080
          </row>
thomasw's avatar
thomasw committed
1081
          <row>
1082
            <entry><option>-XNamedWildCards</option></entry>
thomasw's avatar
thomasw committed
1083
1084
            <entry>Enable <link linkend="named-wildcards">named wildcards</link>.</entry>
            <entry>dynamic</entry>
1085
            <entry><option>-XNoNamedWildCards</option></entry>
thomasw's avatar
thomasw committed
1086
          </row>
dterei's avatar
dterei committed
1087
          <row>
1088
            <entry><option>-XNegativeLiterals</option></entry>
1089
            <entry>Enable support for <link linkend="negative-literals">negative literals</link>.</entry>
dterei's avatar
dterei committed
1090
            <entry>dynamic</entry>
1091
            <entry><option>-XNoNegativeLiterals</option></entry>
dterei's avatar
dterei committed
1092
1093
          </row>
          <row>
1094
            <entry><option>-XNoNPlusKPatterns</option></entry>
1095
            <entry>Disable support for <literal>n+k</literal> patterns.</entry>
dterei's avatar
dterei committed
1096
            <entry>dynamic</entry>
1097
            <entry><option>-XNPlusKPatterns</option></entry>
dterei's avatar
dterei committed
1098
1099
          </row>
          <row>
1100
            <entry><option>-XNullaryTypeClasses</option></entry>
1101
            <entry>Deprecated, does nothing. <link linkend="nullary-type-classes">nullary (no parameter) type classes</link> are now enabled using <option>-XMultiParamTypeClasses</option>.</entry>
dterei's avatar
dterei committed
1102
            <entry>dynamic</entry>
1103
            <entry><option>-XNoNullaryTypeClasses</option></entry>
dterei's avatar
dterei committed
1104
1105
          </row>
          <row>
1106
            <entry><option>-XNumDecimals</option></entry>
1107
            <entry>Enable support for 'fractional' integer literals.</entry>
dterei's avatar
dterei committed
1108
            <entry>dynamic</entry>
1109
            <entry><option>-XNoNumDecimals</option></entry>
dterei's avatar
dterei committed
1110
1111
          </row>
          <row>
1112
            <entry><option>-XOverlappingInstances</option></entry>
1113
            <entry>Enable <link linkend="instance-overlap">overlapping instances</link>.</entry>
dterei's avatar
dterei committed
1114
            <entry>dynamic</entry>
1115
            <entry><option>-XNoOverlappingInstances</option></entry>
dterei's avatar
dterei committed
1116
1117
          </row>
          <row>
1118
1119
            <entry><option>-XOverloadedLists</option></entry>
            <entry>Enable <link linkend="overloaded-lists">overloaded lists</link>.
dterei's avatar
dterei committed
1120
1121
            </entry>
            <entry>dynamic</entry>
1122
            <entry><option>-XNoOverloadedLists</option></entry>
dterei's avatar
dterei committed
1123
1124
          </row>
          <row>
1125
1126
1127
1128
1129
            <entry><option>-XOverloadedStrings</option></entry>
            <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoOverloadedStrings</option></entry>
dterei's avatar
dterei committed
1130
1131
          </row>
          <row>
1132
1133
            <entry><option>-XPackageImports</option></entry>
            <entry>Enable <link linkend="package-imports">package-qualified imports</link>.</entry>
dterei's avatar
dterei committed
1134
            <entry>dynamic</entry>
1135
            <entry><option>-XNoPackageImports</option></entry>
dterei's avatar
dterei committed
1136
1137
          </row>
          <row>
1138
            <entry><option>-XParallelArrays</option></entry>
1139
1140
            <entry>Enable parallel arrays.
              Implies <option>-XParallelListComp</option>.</entry>
dterei's avatar
dterei committed
1141
            <entry>dynamic</entry>
1142
            <entry><option>-XNoParallelArrays</option></entry>
dterei's avatar
dterei committed
1143
1144
          </row>
          <row>
1145
            <entry><option>-XParallelListComp</option></entry>
1146
1147
            <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.
              Implied by <option>-XParallelArrays</option>.</entry>
dterei's avatar
dterei committed
1148
            <entry>dynamic</entry>
1149
            <entry><option>-XNoParallelListComp</option></entry>
dterei's avatar
dterei committed
1150
          </row>
thomasw's avatar
thomasw committed
1151
1152
1153
1154
1155
1156
          <row>
            <entry><option>-XPartialTypeSignatures</option></entry>
            <entry>Enable <link linkend="partial-type-signatures">partial type signatures</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPartialTypeSignatures</option></entry>
          </row>
dterei's avatar
dterei committed
1157
          <row>
1158
1159
            <entry><option>-XPatternGuards</option></entry>
            <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
dterei's avatar
dterei committed
1160
            <entry>dynamic</entry>
1161
            <entry><option>-XNoPatternGuards</option></entry>
dterei's avatar
dterei committed
1162
1163
          </row>
          <row>
1164
1165
            <entry><option>-XPatternSynonyms</option></entry>
            <entry>Enable <link linkend="pattern-synonyms">pattern synonyms</link>.</entry>
dterei's avatar
dterei committed
1166
            <entry>dynamic</entry>
1167
            <entry><option>-XNoPatternSynonyms</option></entry>
dterei's avatar
dterei committed
1168
1169
          </row>
          <row>
1170
1171
1172
            <entry><option>-XPolyKinds</option></entry>
            <entry>Enable <link linkend="kind-polymorphism">kind polymorphism</link>.
                   Implies <option>-XKindSignatures</option>.</entry>
dterei's avatar
dterei committed
1173
            <entry>dynamic</entry>
1174
            <entry><option>-XNoPolyKinds</option></entry>
dterei's avatar
dterei committed
1175
1176
          </row>
          <row>
1177
1178
1179
1180
            <entry><option>-XPolymorphicComponents</option></entry>
            <entry>Enable <link linkend="universal-quantification">polymorphic components for data constructors</link>.</entry>
            <entry>dynamic, synonym for <option>-XRankNTypes</option></entry>
            <entry><option>-XNoPolymorphicComponents</option></entry>
dterei's avatar
dterei committed
1181
1182
          </row>
          <row>
1183
1184
            <entry><option>-XPostfixOperators</option></entry>
            <entry>Enable <link linkend="postfix-operators">postfix operators</link>.</entry>
dterei's avatar
dterei committed
1185
            <entry>dynamic</entry>
1186
            <entry><option>-XNoPostfixOperators</option></entry>
dterei's avatar
dterei committed
1187
1188
          </row>
          <row>
1189
1190
            <entry><option>-XQuasiQuotes</option></entry>
            <entry>Enable <link linkend="th-quasiquotation">quasiquotation</link>.</entry>
dterei's avatar
dterei committed
1191
            <entry>dynamic</entry>
1192
            <entry><option>-XNoQuasiQuotes</option></entry>
dterei's avatar
dterei committed
1193
1194
          </row>
          <row>
1195
1196
1197
1198
            <entry><option>-XRank2Types</option></entry>
            <entry>Enable <link linkend="universal-quantification">rank-2 types</link>.</entry>
            <entry>dynamic, synonym for <option>-XRankNTypes</option></entry>
            <entry><option>-XNoRank2Types</option></entry>
dterei's avatar
dterei committed
1199
1200
          </row>
          <row>
1201
            <entry><option>-XRankNTypes</option></entry>
1202
1203
            <entry>Enable <link linkend="universal-quantification">rank-N types</link>.
              Implied by <option>-XImpredicativeTypes</option>.</entry>
dterei's avatar
dterei committed
1204
            <entry>dynamic</entry>
1205
            <entry><option>-XNoRankNTypes</option></entry>
dterei's avatar
dterei committed
1206
1207
          </row>
          <row>
1208
            <entry><option>-XRebindableSyntax</option></entry>
1209
1210
            <entry>Employ <link linkend="rebindable-syntax">rebindable syntax</link>.
              Implies <option>-XNoImplicitPrelude</option>.</entry>
dterei's avatar
dterei committed
1211
            <entry>dynamic</entry>
1212
            <entry><option>-XNoRebindableSyntax</option></entry>
dterei's avatar
dterei committed
1213
          </row>
1214
          <row>
1215
            <entry><option>-XRecordWildCards</option></entry>
1216
1217
            <entry>Enable <link linkend="record-wildcards">record wildcards</link>.
              Implies <option>-XDisambiguateRecordFields</option>.</entry>
1218
            <entry>dynamic</entry>
1219
            <entry><option>-XNoRecordWildCards</option></entry>
1220
          </row>
dterei's avatar
dterei committed
1221
1222
          <row>
            <entry><option>-XRecursiveDo</option></entry>
1223
            <entry>Enable <link linkend="recursive-do-notation">recursive do (mdo) notation</link>.</entry>
dterei's avatar
dterei committed
1224
1225
1226
1227
            <entry>dynamic</entry>
            <entry><option>-XNoRecursiveDo</option></entry>
          </row>
          <row>
1228
1229
            <entry><option>-XRelaxedPolyRec</option></entry>
            <entry><emphasis>(deprecated)</emphasis> Relaxed checking for 
1230
              <link linkend="typing-binds">mutually-recursive polymorphic functions</link>.</entry>
dterei's avatar
dterei committed
1231
            <entry>dynamic</entry>
1232
            <entry><option>-XNoRelaxedPolyRec</option></entry>
dterei's avatar
dterei committed
1233
1234
          </row>
          <row>
1235
1236
            <entry><option>-XRoleAnnotations</option></entry>
            <entry>Enable <link linkend="role-annotations">role annotations</link>.</entry>
dterei's avatar
dterei committed
1237
            <entry>dynamic</entry>
1238
            <entry><option>-XNoRoleAnnotations</option></entry>
dterei's avatar
dterei committed
1239
1240
          </row>
          <row>
1241
1242
            <entry><option>-XSafe</option></entry>
            <entry>Enable the <link linkend="safe-haskell">Safe Haskell</link> Safe mode.</entry>
dterei's avatar
dterei committed
1243
            <entry>dynamic</entry>
1244
            <entry><option>-</option></entry>
dterei's avatar
dterei committed
1245
1246
          </row>
          <row>
1247
1248
1249
            <entry><option>-XScopedTypeVariables</option></entry>
            <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
              </entry>
dterei's avatar
dterei committed
1250
            <entry>dynamic</entry>
1251
            <entry><option>-XNoScopedTypeVariables</option></entry>
dterei's avatar
dterei committed
1252
1253
1254
1255
1256
1257
1258
1259
          </row>
          <row>
            <entry><option>-XStandaloneDeriving</option></entry>
            <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoStandaloneDeriving</option></entry>
          </row>
          <row>
1260
1261
            <entry><option>-XTemplateHaskell</option></entry>
            <entry>Enable <link linkend="template-haskell">Template Haskell</link>.</entry>
dterei's avatar
dterei committed
1262
            <entry>dynamic</entry>
1263
            <entry><option>-XNoTemplateHaskell</option></entry>
dterei's avatar
dterei committed
1264
1265
          </row>
          <row>
1266
1267
            <entry><option>-XNoTraditionalRecordSyntax</option></entry>
            <entry>Disable support for traditional record syntax (as supported by Haskell 98) <literal>C {f = x}</literal></entry>
dterei's avatar
dterei committed
1268
            <entry>dynamic</entry>
1269
            <entry><option>-XTraditionalRecordSyntax</option></entry>
dterei's avatar
dterei committed
1270
1271
          </row>
          <row>