1234567891011121314151617181920212223242526272829303132333435363738open!Core_kernelmoduletypeHandler=sigmoduleAction:sigtypetendvalhandle:Action.t->unitendmoduletypeS=sigtypeactiontypet=private..typet+=C:action->tvalinject:action->tendmoduletypeEvent=sigmoduletypeHandler=HandlermoduletypeS=Stypet=..typet+=Ignore|ManyoftlistmoduleDefine(Handler:Handler):Swithtypeaction:=Handler.Action.tandtypet:=tmoduleExpert:sig(** [handle t] looks up the [Handler.handle] function in the table of [Define]d
functions, unwraps the [Event.t] back into its underlying [Action.t], and applies
the two. This is only intended for internal use by this library, specifically by
the attribute code. *)valhandle:t->unitvalhandlers:(t->unit)Int.Table.tendend