This repository was archived by the owner on Nov 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlagOpts.flags
48 lines (40 loc) · 1.73 KB
/
FlagOpts.flags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{-@Options
# Code Options
Various options affecting how jhc interprets and compiles code can be
controlled with the '-f' flag, the following options are availible, you can
negate any particular one by prepending 'no-' to it.
!Code options
unboxed-tuples allow unboxed tuple syntax to be recognized
unboxed-values allow unboxed value syntax
ffi support foreign function declarations
cpp pass haskell source through c preprocessor
m4 pass haskell source through m4 preprocessor
prelude implicitly import Prelude
sugar disable all desugarings, only unboxed literals allowed.
type-families type/data family support
user-kinds user defined kinds
forall forall keyword for rank-n types and explicit quantification
exists exists keyword for existential types recognized
bang-patterns - bang patterns
!Typechecking
monomorphism-restriction enforce monomorphism restriction
defaulting perform defaulting of ambiguous types
!Debugging
lint perform lots of extra type checks
!Optimization Options
inline-pragmas use inline pragmas
rules use rules
type-analysis perform a basic points-to analysis on types right after method generation
global-optimize perform whole program E optimization
!Code Generation
standalone compile to a standalone executable
full-int extend Int and Word to 32 bits on a 32 bit machine (rather than 30)
wrapper wrap main in exception handler
boehm use Boehm garbage collector
jgc use the jgc garbage collector
profile enable profiling code in generated executable
debug enable debugging code in generated executable
raw just evaluate main to WHNF and nothing else.
!Default settings
@default inline-pragmas rules wrapper defaulting type-analysis monomorphism-restriction global-optimize full-int prelude sugar
@glasgow-exts forall ffi unboxed-tuples