dune/src/top_closure.mli

15 lines
348 B
OCaml
Raw Normal View History

2016-12-02 13:54:32 +00:00
open Import
module type Elt = sig
type t
type graph
type key
val key : t -> key
val deps : t -> graph -> t list
end
module Make(Key : Set.OrderedType)(Elt : Elt with type key := Key.t) : sig
(** 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