Skip to content

Commit f075879

Browse files
committed
Hide Ascriptions setting
1 parent 4905957 commit f075879

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/web/Settings.re

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module Update = {
9797
| ShowCaseClauses
9898
| ShowFnBodies
9999
| ShowAscriptionSteps
100+
| ShowAscriptions
100101
| ShowCaseSteps
101102
| ShowFixpoints
102103
| ShowLookups
@@ -211,6 +212,10 @@ module Update = {
211212
...evaluation,
212213
show_ascription_steps: !evaluation.show_ascription_steps,
213214
}
215+
| ShowAscriptions => {
216+
...evaluation,
217+
show_ascriptions: !evaluation.show_ascriptions,
218+
}
214219
| ShowCaseSteps => {
215220
...evaluation,
216221
show_case_steps: !evaluation.show_case_steps,

src/web/app/editors/SettingsModal.re

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ let view =
4141
settings.show_case_clauses,
4242
Evaluation(ShowCaseClauses),
4343
),
44+
setting(
45+
"⇨",
46+
"show case steps",
47+
settings.show_case_steps,
48+
Evaluation(ShowCaseSteps),
49+
),
4450
setting(
4551
"λ",
4652
"show function bodies",
@@ -53,6 +59,12 @@ let view =
5359
settings.show_fixpoints,
5460
Evaluation(ShowFixpoints),
5561
),
62+
setting(
63+
":",
64+
"show ascriptions",
65+
settings.show_ascriptions,
66+
Evaluation(ShowAscriptions),
67+
),
5668
setting(
5769
"⇨",
5870
"show ascription steps",

src/web/view/NutMenu.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ let values_group = (~globals: Globals.t) => {
6666
("λ", "Functions", s.show_fn_bodies, Evaluation(ShowFnBodies)),
6767
("|", "Cases", s.show_case_clauses, Evaluation(ShowCaseClauses)),
6868
("f", "Fixpoints", s.show_fixpoints, Evaluation(ShowFixpoints)),
69+
(":", "Ascriptions", s.show_ascriptions, Evaluation(ShowAscriptions)),
6970
],
7071
);
7172
};

0 commit comments

Comments
 (0)