1Warnings(3)                      OCaml library                     Warnings(3)
2
3
4

NAME

6       Warnings - no description
7

Module

9       Module   Warnings
10

Documentation

12       Module Warnings
13        : sig end
14
15
16
17
18
19
20
21       type loc = {
22        loc_start : Lexing.position ;
23        loc_end : Lexing.position ;
24        loc_ghost : bool ;
25        }
26
27
28
29
30       type t =
31        | Comment_start
32        | Comment_not_end
33        | Deprecated of string * loc * loc
34        | Fragile_match of string
35        | Partial_application
36        | Labels_omitted of string list
37        | Method_override of string list
38        | Partial_match of string
39        | Non_closed_record_pattern of string
40        | Statement_type
41        | Unused_match
42        | Unused_pat
43        | Instance_variable_override of string list
44        | Illegal_backslash
45        | Implicit_public_methods of string list
46        | Unerasable_optional_argument
47        | Undeclared_virtual_method of string
48        | Not_principal of string
49        | Without_principality of string
50        | Unused_argument
51        | Nonreturning_statement
52        | Preprocessor of string
53        | Useless_record_with
54        | Bad_module_name of string
55        | All_clauses_guarded
56        | Unused_var of string
57        | Unused_var_strict of string
58        | Wildcard_arg_to_constant_constr
59        | Eol_in_string
60        | Duplicate_definitions of string * string * string * string
61        | Multiple_definition of string * string * string
62        | Unused_value_declaration of string
63        | Unused_open of string
64        | Unused_type_declaration of string
65        | Unused_for_index of string
66        | Unused_ancestor of string
67        | Unused_constructor of string * bool * bool
68        | Unused_extension of string * bool * bool * bool
69        | Unused_rec_flag
70        | Name_out_of_scope of string * string list * bool
71        | Ambiguous_name of string list * string list * bool
72        | Disambiguated_name of string
73        | Nonoptional_label of string
74        | Open_shadow_identifier of string * string
75        | Open_shadow_label_constructor of string * string
76        | Bad_env_variable of string * string
77        | Attribute_payload of string * string
78        | Eliminated_optional_arguments of string list
79        | No_cmi_file of string * string option
80        | Bad_docstring of bool
81        | Expect_tailcall
82        | Fragile_literal_pattern
83        | Misplaced_attribute of string
84        | Duplicated_attribute of string
85        | Inlining_impossible of string
86        | Unreachable_case
87        | Ambiguous_pattern of string list
88        | No_cmx_file of string
89        | Assignment_to_non_mutable_value
90        | Unused_module of string
91        | Unboxable_type_in_prim_decl of string
92        | Constraint_on_gadt
93
94
95
96
97
98       val parse_options : bool -> string -> unit
99
100
101
102
103       val without_warnings : (unit -> 'a) -> 'a
104
105
106
107
108       val is_active : t -> bool
109
110
111
112
113       val is_error : t -> bool
114
115
116
117
118       val defaults_w : string
119
120
121
122
123       val defaults_warn_error : string
124
125
126
127       type reporting_information = {
128        number : int ;
129        message : string ;
130        is_error : bool ;
131        sub_locs : (loc * string) list ;
132        }
133
134
135
136
137
138       val report : t -> [ `Active of reporting_information | `Inactive ]
139
140
141
142
143       exception Errors
144
145
146
147
148
149       val check_fatal : unit -> unit
150
151
152
153
154       val reset_fatal : unit -> unit
155
156
157
158
159       val help_warnings : unit -> unit
160
161
162
163       type state
164
165
166
167
168
169       val backup : unit -> state
170
171
172
173
174       val restore : state -> unit
175
176
177
178
179       val mk_lazy : (unit -> 'a) -> 'a Lazy.t
180
181       Like  Lazy.of_fun  ,  but the function is applied with the warning set‐
182       tings at the time mk_lazy is called.
183
184
185
186
187
188OCamldoc                          2018-07-14                       Warnings(3)
Impressum