add containers and remove jane streets stdio
This commit is contained in:
parent
d8a90a3ae5
commit
661cdf1c95
2
src/dune
2
src/dune
|
|
@ -1,6 +1,6 @@
|
|||
(library
|
||||
(name aoc)
|
||||
(libraries stdio re dune-site)
|
||||
(libraries re containers dune-site)
|
||||
(preprocess (pps ppx_regexp)))
|
||||
|
||||
(install
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
open Containers
|
||||
|
||||
let lines_of_input day =
|
||||
let base_path =
|
||||
match Inputs.Sites.inputs with
|
||||
|
|
@ -5,5 +7,5 @@ let lines_of_input day =
|
|||
| _ -> failwith "cant find path containing inputs"
|
||||
in
|
||||
let path = Printf.sprintf "%s/day%d.tt" base_path day in
|
||||
Stdio.In_channel.(with_file path ~f:input_lines)
|
||||
IO.(with_in path read_lines_l)
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user