aboutsummaryrefslogtreecommitdiff
path: root/lib/kernel/rite.ml
blob: b948390cdb7abe939342a85bf9b60b7c0d329898 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
(* Everything a rite supplies, bundled. Passing these as loose arguments let a
   caller pair one rite's vocab with another's temporal; bundling makes that
   unrepresentable through the normal path. *)
type ('s, 'r) t = {
  id : string;
  vocab : ('s, 'r) Vocab.t;
  year_start : int -> Date.t;
  temporal : Date.t -> ('s, 'r) Temporal.t;
  anchors : int -> (string * Date.t) list;
  rules : ('s, 'r) Precedence.rules;
  season_runs : 's list;
}