Skip to content

Commit

Permalink
fixes .ml export prompt bug; added blank exercise spec
Browse files Browse the repository at this point in the history
  • Loading branch information
russell-rozenbaum committed Dec 21, 2024
1 parent dec734e commit c19228b
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 19 deletions.
6 changes: 1 addition & 5 deletions src/haz3lweb/exercises/Exercise.re
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,7 @@ let editor_pp = (fmt, editor: Editor.t) => {
};

let export_module = (module_name, {eds, _}: state) => {
let prefix =
"let prompt = "
++ module_name
++ "_prompt.prompt\n"
++ "let exercise: Exercise.spec = ";
let prefix = "open Haz3lcore\n\n" ++ "let exercise: Exercise.spec = \n";
let record = show_p(editor_pp, eds);
let data = prefix ++ record ++ "\n";
data;
Expand Down
87 changes: 87 additions & 0 deletions src/haz3lweb/exercises/examples/BlankExercise.ml

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

14 changes: 0 additions & 14 deletions src/haz3lweb/exercises/examples/BlankTemplate.ml

This file was deleted.

1 change: 1 addition & 0 deletions src/haz3lweb/exercises/settings/ExerciseSettings_base.re
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ let log_key = filename;
let exercises: list(Exercise.spec) = [
Ex_OddlyRecursive.exercise,
Ex_RecursiveFibonacci.exercise,
BlankExercise.exercise,
];

0 comments on commit c19228b

Please sign in to comment.