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.ocamlformat_utils/Ocamlformat_utils/index.html

Module Ocamlformat_utilsSource

Sourcemodule Parsing : sig ... end

OCamlformat's version of OCaml's parsing modules

module Cmt = Ocamlformat_lib.Cmt
Sourcemodule Ast_utils : module type of Ast_utils

Utility functions for contructing AST nodes.

Sourcetype modify_ast = {
  1. structure : Parsing.Parsetree.structure -> Parsing.Parsetree.structure * Cmt.t list;
  2. signature : Parsing.Parsetree.signature -> Parsing.Parsetree.signature * Cmt.t list;
}
Sourceval format_in_place : file:string -> modify_ast:modify_ast -> (unit, [ `Msg of string ]) result

Format the content of and overwrite file. modify_ast can be used to apply any change to the program. Raises Failure and Sys_error.

Sourceval parse : file:string -> ([ `Structure of Parsing.Parsetree.structure | `Signature of Parsing.Parsetree.signature ], [ `Msg of string ]) result

Parse an ocaml file.

Formatting a fragment of AST. This is most useful for messages.

Sourceval format_expression : Parsing.Parsetree.expression -> string
Sourceval format_longident : Parsing.Longident.t -> string

Format longidents without comments.