aboutsummaryrefslogtreecommitdiff
path: root/lib/kernel/citation.mli
blob: 74cd639f39ae66d422590fddf0dfac6ebfe5e94e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
(** A scripture *reference* (e.g. ["Jn 3:16"]), never scripture text. *)
type part = First | Psalm | Second | Gospel | Tract | Alleluia | Sequence
[@@deriving sexp]

val all_parts : part list
val part_to_string : part -> string
val part_of_string : string -> part option

type t = { part : part; reference : string } [@@deriving sexp]

val sexp_of_t : t -> Sexplib0.Sexp.t
val t_of_sexp : Sexplib0.Sexp.t -> t