Up

module As_merlin

: sig

Generate `.merlin` files.

#
module Directive : sig

Merlin directives

Variables

#
type t

The type for directives.

#
val s : string -> t

s dir is the merlin source directory directive S.

#
val b : string -> t

b dir is the merlin build directory directive B.

#
val pkg : string -> t

pkg name is the merlin findlib package reference directive PKG.

#
val ext : string -> t

ext pps is the merlin syntax extension directive EXT.

end
#
type t

The type for `.merlin` files.

#
val create : ?s:string list -> ?b:string list -> ?pkg:string list -> ?ext:string list -> unit -> t

Create a `.merlin` file.

#
val add_directive : t -> Directive.t -> t

Add a Directive.t to a `.merlin` file.

#
val of_project : build_dir:string -> As_project.t -> t

Create a `.merlin` file from a project.

#
val to_string : t -> string

to_string m is a `.merlin` file from m.

#
val write_file : string -> t -> unit

write_file file m write m to file.

end