Skip to content

Commit

Permalink
🚚 Module Recorder -> Recorder_intf
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeta611 committed Dec 21, 2024
1 parent fb18b7a commit 181f751
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/js/string_recorder/string_recorder.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open React_trace
open Lib_domains
open Concrete_domains
open Interp_effects
include Recorder.Recorder_intf
include Recorder_intf

type recording = string

Expand Down
1 change: 0 additions & 1 deletion bin/js/string_recorder/string_recorder.mli
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
open Recorder
include Recorder_intf.Intf with type recording = string
2 changes: 1 addition & 1 deletion bin/native/report_box_recorder/report_box_recorder.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open React_trace
open Interp_effects
open Lib_domains
open Concrete_domains
include Recorder.Recorder_intf
include Recorder_intf
module B = PrintBox

type recording = (string * B.t) list
Expand Down
1 change: 0 additions & 1 deletion bin/native/report_box_recorder/report_box_recorder.mli
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
open Recorder
include Recorder_intf.Intf with type recording = (string * PrintBox.t) list
2 changes: 1 addition & 1 deletion lib/default_recorder.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
open Stdlib.Effect
open Stdlib.Effect.Deep
open Interp_effects
include Recorder.Recorder_intf
include Recorder_intf

type recording = unit

Expand Down
1 change: 0 additions & 1 deletion lib/default_recorder.mli
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
open Recorder
include Recorder_intf.Intf

(** Default recorder does nothing *)
2 changes: 1 addition & 1 deletion lib/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(library
(name react_trace)
(libraries recorder base logs flow_parser lib_domains))
(libraries recorder_intf base logs flow_parser lib_domains))
3 changes: 1 addition & 2 deletions lib/interp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ type 'recording run_info = {
}

let run (type recording) ?(fuel : int option)
~(recorder :
(module Recorder.Recorder_intf.Intf with type recording = recording))
~(recorder : (module Recorder_intf.Intf with type recording = recording))
(prog : Prog.t) : recording run_info =
Logger.run prog;

Expand Down
2 changes: 1 addition & 1 deletion lib/recorder/dune → lib/recorder_intf/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(library
(name recorder)
(name recorder_intf)
(libraries base))
File renamed without changes.

0 comments on commit 181f751

Please sign in to comment.