32 lines
532 B
OCaml
32 lines
532 B
OCaml
(** Workspaces definitions *)
|
|
|
|
open! Import
|
|
|
|
module Context : sig
|
|
module Target : sig
|
|
type t =
|
|
| Native
|
|
| Named of string
|
|
end
|
|
module Opam : sig
|
|
type t =
|
|
{ name : string
|
|
; switch : string
|
|
; root : string option
|
|
; merlin : bool
|
|
; targets : Target.t list
|
|
}
|
|
end
|
|
|
|
type t = Default of Target.t list | Opam of Opam.t
|
|
|
|
val name : t -> string
|
|
end
|
|
|
|
type t =
|
|
{ merlin_context : string option
|
|
; contexts : Context.t list
|
|
}
|
|
|
|
val load : ?x:string -> string -> t
|