Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Verbose level and loggers management.
Default verbosity level (may be set with command line arguments).
val out : int -> 'a Lplib.Base.outfmt -> 'a
out lvl fmt
prints an output message using the format fmt
, but only if lvl
is strictly greater than the current verbosity level. Note that the output channel is automatically flushed if logging modes are enabled.
val boolean_flags : (bool * bool Timed.ref) Lplib.Extra.StrMap.t Stdlib.ref
List of registered boolean flags, with their default values.
register_flag id d
registers a new boolean flag named id
, with default value of d
. Note the name should not have been used previously.
set_flag id b
sets the value of the flag named id
to be b
, or raises Not_found
if no flag with this name was registered.
reset_default ()
resets the verbosity level and the state of the loggers to their default value (configurable by the user with command line flags). The boolean flags are also reset to their default values.
module State : sig ... end
Module to manipulate imperative state of the typechecker.