package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-4.16-501.tbz
sha256=da5bf309b040645c292ae4572cc6a0a700dbd2bcfc996ac13c8e5c3836c21e26
sha512=99eba17b2bdec5411d239093f4e8e11ada79b2b84ae88074a1b46e47eb836bbf8cb7836c472c22e7f9e68cff1b9ea6d9b9989b70055c3277edb4cddc4a86460c

doc/merlin-lib.utils/Merlin_utils/File_id/index.html

Module Merlin_utils.File_idSource

Sourcetype t

An instance of t represents the identity of the contents of a file path. Use this to quickly detect if a file has changed. (Detection is done by checking some fields from stat syscall, it can be tricked but should behave well in regular cases). FIXME: precision of mtime is still the second?!

Sourceval check : t -> t -> bool

Returns true iff the heuristic determines that the file contents has not changed.

Sourceval get : string -> t

file_id filename computes an id for the current contents of filename. Returns a generic id, if the id can't be computed.

Sourceval get_res : string -> (t, string) Result.t

Same as get, but returns an error, if the id can't be computed.

Sourceval with_cache : (unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.