Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 3, 2024
2 parents 51bbb65 + 35629e9 commit 88d81a3
Show file tree
Hide file tree
Showing 19 changed files with 429 additions and 170 deletions.
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
bisect_ppx
(omd (>= 2.0.0~alpha4))
ezjs_idb
virtual_dom
bonsai
ppx_deriving
ptmap
uuidm
(uuidm (= 0.9.8)) ; 0.9.9 has breaking deprecated changes
unionFind
ocamlformat
(junit_alcotest :with-test)
Expand Down
9 changes: 9 additions & 0 deletions dune-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(lang dune 3.16)

(env
(dev
(flags
(:standard -warn-error -A)))
(release
(flags
(:standard -warn-error +A-58))))
5 changes: 2 additions & 3 deletions hazel.opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 78 additions & 28 deletions hazel.opam.locked

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/haz3lcore/lang/term/IdTagged.re
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ type t('a) = {
term: 'a,
};

// To be used if you want to remove the id from the debug output
// let pp: ((Format.formatter, 'a) => unit, Format.formatter, t('a)) => unit =
// (fmt_a, formatter, ta) => {
// fmt_a(formatter, ta.term);
// };
let fresh = term => {
{ids: [Id.mk()], copied: false, term};
};
Expand Down
1 change: 0 additions & 1 deletion src/haz3lweb/Editors.re
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ let perform_action =
CoreSettings.on
| _ => settings
};
print_endline("action: " ++ Action.show(a));
switch (Perform.go(~settings, a, get_editor(editors))) {
| Error(err) => Error(FailedToPerform(err))
| Ok(ed) => Ok(put_editor(ed, editors))
Expand Down
2 changes: 1 addition & 1 deletion src/haz3lweb/Keyboard.re
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ let shortcuts = (sys: Key.sys): list(shortcut) =>
]
@ (if (ExerciseSettings.show_instructor) {instructor_shortcuts} else {[]});

let handle_key_event = (k: Key.t): option(Update.t) => {
let handle_key_event = (k: Key.t): option(UpdateAction.t) => {
let now = (a: Action.t): option(UpdateAction.t) =>
Some(PerformAction(a));
switch (k) {
Expand Down
3 changes: 2 additions & 1 deletion src/haz3lweb/Log.re
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ let is_action_logged: UpdateAction.t => bool =
| FinishImportAll(_)
| FinishImportScratchpad(_)
| Benchmark(_)
| DebugConsole(_) => false
| DebugConsole(_)
| Startup => false
| Reset
| TAB
| Set(_)
Expand Down
Loading

0 comments on commit 88d81a3

Please sign in to comment.