dune/src/top_closure.mli

15 lines
345 B
OCaml
Raw Normal View History

open Stdune
2016-12-02 13:54:32 +00:00
module type Elt = sig
type t
type graph
type key
val key : t -> key
val deps : t -> graph -> t list
end
module Make(Key : Comparable.S)(Elt : Elt with type key := Key.t) : sig
2016-12-02 13:54:32 +00:00
(** Returns [Error cycle] in case the graph is not a DAG *)
val top_closure : Elt.graph -> Elt.t list -> (Elt.t list, Elt.t list) result
end