From b4ac6d36f2f20f45c6d67f28c3785efaa482085d Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 3 Dec 2023 22:17:21 -0800 Subject: fix compilation errors for using Caml instead of Stdlib --- bin/main.ml | 2 +- bin/utils.ml | 2 +- 2 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 ; -- cgit 1.4.1-2-gfad0