Skip to content

Commit

Permalink
Back to working
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Aug 22, 2024
1 parent ff86788 commit bc56c2f
Show file tree
Hide file tree
Showing 12 changed files with 126 additions and 113 deletions.
2 changes: 1 addition & 1 deletion src/haz3lweb/DebugConsole.re
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let print = ({settings, editors, _}: Model.t, key: string): unit => {
|> Zipper.unselect_and_zip
|> ((seg: Segment.t(Uuidm.t)) => [%derive.show: Segment.t(Id.t)](seg))
|> print
| "F3" => term |> [%derive.show: UExp.t(list(Id.t))] |> print
| "F3" => term |> [%derive.show: UExp.t(IdTag.t)] |> print
| "F4" => map |> Statics.Map.show |> print
| "F5" =>
let env = Editors.get_env_init(~settings, editors);
Expand Down
2 changes: 1 addition & 1 deletion src/haz3lweb/Editors.re
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let perform_action =
let update_current_editor_statics = settings =>
update(Editor.update_statics(~settings));

let get_ctx_init = (~settings as _: Settings.t, editors: t): Ctx.t =>
let get_ctx_init = (~settings as _: Settings.t, editors: t): Ctx.t(IdTag.t) =>
switch (editors) {
| Scratch(_)
| Exercises(_)
Expand Down
5 changes: 3 additions & 2 deletions src/haz3lweb/view/CtxInspector.re
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ open Util.Web;
let jump_to = entry =>
UpdateAction.PerformAction(Jump(TileId(Haz3lcore.Ctx.get_id(entry))));

let context_entry_view = (~inject, entry: Haz3lcore.Ctx.entry): Node.t => {
let context_entry_view =
(~inject, entry: Haz3lcore.Ctx.entry(Haz3lcore.IdTag.t)): Node.t => {
let div_name =
div(
~attrs=[clss(["name"]), Attr.on_click(_ => inject(jump_to(entry)))],
Expand Down Expand Up @@ -33,7 +34,7 @@ let context_entry_view = (~inject, entry: Haz3lcore.Ctx.entry): Node.t => {
};
};

let ctx_view = (~inject, ctx: Haz3lcore.Ctx.t): Node.t =>
let ctx_view = (~inject, ctx: Haz3lcore.Ctx.t(Haz3lcore.IdTag.t)): Node.t =>
div(
~attrs=[clss(["context-entries"])],
List.map(
Expand Down
Loading

0 comments on commit bc56c2f

Please sign in to comment.