Skip to content

Commit

Permalink
updated type annotations of ignore commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cakoch10 committed Dec 8, 2019
1 parent 1047a13 commit 3347316
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/repl/repl_katbb.ml
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,4 @@ let rec repl () =
let main () : unit =
printf "Welcome to the KAT+B! REPL!\n";
printf "Type `help` for a list of commands\n";
let _ = repl () in
()
ignore (repl () : 'a Deferred.t)
3 changes: 1 addition & 2 deletions src/repl/repl_katbv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -321,5 +321,4 @@ let rec repl () =
let main () : unit =
printf "Welcome to the KAT+BV REPL!\n";
printf "Type `help` for a list of commands\n";
let _ = repl () in
()
ignore (repl () : 'a Deferred.t)
4 changes: 2 additions & 2 deletions src/tables/tables.ml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ let to_string_doc b =
(** [render_box tbl] is the [PrintBox.t] object representing [tbl] *)
let render_box var_name tbl =
let matrix = Array.make_matrix ~dimy:2 ~dimx:(1+(List.length tbl)) "" in
let _ = matrix.(0).(0) <- "Pattern"; matrix.(0).(1) <- "Actions" in
let _ = List.iteri tbl ~f:(fun i (p,a) ->
let _ : unit = matrix.(0).(0) <- "Pattern"; matrix.(0).(1) <- "Actions" in
let _ : unit = List.iteri tbl ~f:(fun i (p,a) ->
matrix.(i+1).(0) <- (to_str_lst p "=" var_name);
matrix.(i+1).(1) <- (to_str_act var_name a)
)
Expand Down

0 comments on commit 3347316

Please sign in to comment.