package ciao_lwt

  1. Overview
  2. Docs
A tool for migrating from Lwt to direct-style concurrency libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ciao_lwt-0.2.tbz
sha256=1ee830a5a6fec1adf4dc3fe3caae7cca769b49c1671fb0fcb4884778feb211c6
sha512=6ff296f22bfc254e96acf83465876843bbeabbfa11239528fd9a3d4f6cc1a7d0973a517b9dc0f5c1d7fe467c945ae686a4aa294788cda3d37035b4ab7928c5bf

doc/ciao_lwt.migrate_utils/Migrate_utils/index.html

Module Migrate_utilsSource

Sourcetype state
Sourcemodule Occ : sig ... end

Manage occurrences of identifiers that should be migrated.

Sourceval add_comment : state -> ?loc:Ocamlformat_utils.Parsing.Location.t -> string -> unit

Add comments in the output. Comments are attached to a location that must appear in the output AST and cannot be a ghost location. If loc is None, use the location set with set_default_comment_loc instead.

Sourceval set_default_comment_loc : state -> Ocamlformat_utils.Parsing.Location.t -> unit

Set the default location for comments added with add_comment.

Sourcetype modify_ast = {
  1. structure : state -> Ocamlformat_utils.Parsing.Parsetree.structure -> Ocamlformat_utils.Parsing.Parsetree.structure;
  2. signature : state -> Ocamlformat_utils.Parsing.Parsetree.signature -> Ocamlformat_utils.Parsing.Parsetree.signature;
}
Sourceval migrate : packages:string list -> units:(string -> bool) -> modify_ast:(fname:string -> modify_ast) -> (unit, [ `Msg of string ]) result

Modify files containing occurrences to modules matched by units of packages packages using modify_ast. Will scan file in _build and in the current directory.

Sourceval print_occurrences : packages:string list -> units:(string -> bool) -> (unit, [ `Msg of string ]) result

Print occurrences that would be rewritten by migrate.