summaryrefslogtreecommitdiff
path: root/src/initial_check.mli
diff options
context:
space:
mode:
Diffstat (limited to 'src/initial_check.mli')
-rw-r--r--src/initial_check.mli13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/initial_check.mli b/src/initial_check.mli
index 757959f7..e6b29216 100644
--- a/src/initial_check.mli
+++ b/src/initial_check.mli
@@ -51,9 +51,20 @@
open Ast
open Ast_util
-(* Generate undefined_T functions for every type T *)
+(* Generate undefined_T functions for every type T. False by
+ default. *)
val opt_undefined_gen : bool ref
+(* Generate faster undefined_T functions. Rather than generating
+ functions that allow for the undefined values of enums and variants
+ to be picked at runtime using a RNG or similar, this creates
+ undefined_T functions for those types that simply return a specific
+ member of the type chosen at compile time, which is much
+ faster. These functions don't have the right effects, so the
+ -no_effects flag may be needed if this is true. False by
+ default. *)
+val opt_fast_undefined : bool ref
+
(* Allow # in identifiers when set, like the GHC option of the same name *)
val opt_magic_hash : bool ref