fix compilation errors for using Caml instead of Stdlib
HEAD main2 files changed, 2 insertions, 2 deletions
diff --git a/bin/main.ml b/bin/main.ml
index 8e36c28..494e274 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -5,7 +5,7 @@ let () =
let args = Sys.argv in
let day = args.(1) in
let input_file = Printf.sprintf "inputs/%s.in" day in
- if not @@ Caml.Sys.file_exists input_file then
+ if not @@ Stdlib.Sys.file_exists input_file then
download_input day input_file ;
let file = In_channel.open_text input_file in
let inputs = In_channel.input_all file in
diff --git a/bin/utils.ml b/bin/utils.ml
index 4f488f4..cd098bb 100644
--- a/bin/utils.ml
+++ b/bin/utils.ml
@@ -13,7 +13,7 @@ let get_token () =
In_channel.close file ; String.trim token
let get_year () =
- if Caml.Sys.file_exists year_file then (
+ if Stdlib.Sys.file_exists year_file then (
let file = In_channel.open_text year_file in
let year = In_channel.input_all file in
In_channel.close file ;
|