made src a lib so that it loads into utop

also made an exe dir that does what `main.ml` used to do.
now `dune exec aoc` and `dune utop .` both do what they should :)
This commit is contained in:
ryan 2023-09-21 20:05:48 -07:00
parent 869858c00e
commit e1402bc17d
4 changed files with 12 additions and 7 deletions

4
exe/dune Normal file
View File

@ -0,0 +1,4 @@
(executable
(public_name aoc)
(name main)
(libraries aoc))

6
exe/main.ml Normal file
View File

@ -0,0 +1,6 @@
open Aoc
let () =
Day1.print ();
Day2.print ()
;;

View File

@ -1,5 +1,4 @@
(executable
(public_name aoc)
(name main)
(library
(name aoc)
(libraries stdio re)
(preprocess (pps ppx_regexp)))

View File

@ -1,4 +0,0 @@
let () =
Day1.print;
Day2.print
;;