A Nix-friendly SQLite-enhanced fork of Flitter, a speedrunning split timer for Unix-style terminals
Revision | f6115feb6e4b8508db577c5705f4d6bb2b65b545 (tree) |
---|---|
Time | 2022-12-20 19:10:21 |
Author | Corbin <cds@corb...> |
Commiter | Corbin |
Use interface files to declare module boundaries.
This will make refactoring easier.
@@ -0,0 +1,12 @@ | ||
1 | +open Notty | |
2 | + | |
3 | +val text : attr | |
4 | +val label : attr | |
5 | +val ahead_gain : attr | |
6 | +val ahead_loss : attr | |
7 | +val behind_gain : attr | |
8 | +val behind_loss : attr | |
9 | +val rainbow : unit -> attr | |
10 | +val default_bg : attr | |
11 | +val selection_bg : attr | |
12 | +val idle : attr |
@@ -3,6 +3,7 @@ | ||
3 | 3 | (wrapped false) |
4 | 4 | (libraries core core_kernel core_unix sexplib lwt.unix notty notty.unix re color sexp_pretty) |
5 | 5 | (preprocess (pps lwt_ppx ppx_sexp_conv)) |
6 | + (modules_without_implementation timer_types) | |
6 | 7 | ) |
7 | 8 | |
8 | 9 | ; vim:ft=scheme |
@@ -0,0 +1,13 @@ | ||
1 | +val is_gold : Timer_types.timer -> int -> bool | |
2 | +val ahead_by : Timer_types.timer -> ?now:float -> int -> int option | |
3 | +val segment_time : Timer_types.timer -> ?now:float -> int -> int option | |
4 | +val archived_split_time : Timer_types.timer -> int -> int option | |
5 | +val archived_segment_time : Timer_types.timer -> int -> int option | |
6 | + | |
7 | +val archive_done_run : | |
8 | + Timer_types.timer -> Duration.t option array -> Timer_types.archived_run | |
9 | + | |
10 | +val split_time : Timer_types.timer -> ?now:float -> int -> int option | |
11 | +val gold_sum : Timer_types.timer -> int -> int -> int option | |
12 | +val updated_golds : Timer_types.timer -> Timer_types.gold array | |
13 | +val updated_pb : Timer_types.timer -> Timer_types.archived_run option |