package codept-lib

  1. Overview
  2. Docs

Failure handling: detection of cycle, unresolvable dependencies and internal errors.

type status =
  1. | Cycle of Namespaced.t Loc.ext
  2. | Extern of Namespaced.t
  3. | Depend_on of Namespaced.t
  4. | Internal_error
type 'a cycle
type 'a cycles
val to_list : 'a cycles -> (status * Unit.s list) list
type alias_resolver = Summary.t -> Paths.S.t -> Namespaced.t
type 'a blocker = 'a -> (Summary.t * Paths.S.t) Loc.ext option
val analyze : 'a blocker -> alias_resolver -> 'a i list -> ('a i * status option ref) Namespaced.Map.t * 'a cycles
val pp_circular : 'a blocker -> alias_resolver -> ('a i * 'a) Namespaced.Map.t -> Namespaced.t -> bool -> Format.formatter -> Namespaced.t -> unit
val pp_cat : 'a blocker -> alias_resolver -> ('a i * _) Namespaced.Map.t -> Format.formatter -> (status * 'a cycle) -> unit
val pp : 'a blocker -> alias_resolver -> ('a i * _) Namespaced.Map.t -> Format.formatter -> 'a cycles -> unit
val pp_cycle : 'a blocker -> alias_resolver -> Format.formatter -> 'a i list -> unit
OCaml

Innovation. Community. Security.