package ppx_string

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Used to configure different instances of this ppx. May be used, for example, to add preprocessing, or to interpolate a different string-like type.

Used to configure different instances of this ppx. May be used, for example, to add preprocessing, or to interpolate a different string-like type.

type t = {
  1. fully_qualified_runtime_module : Ppxlib.Longident.t;
    (*

    Where to find an implementation of Ppx_string_runtime.S. The implementation of [%string] is at Ldot (Lident "Ppx_string_runtime", "For_string")

    *)
  2. conversion_function_name : Base.string;
    (*

    Conversion function implied by "%{expr#Module}", e.g. "to_string".

    *)
  3. preprocess_before_parsing : (Base.string -> Base.string) Base.option;
    (*

    Preprocessing to apply before parsing the string for interpolation. If None, source locations can be computed precisely based on the result of parsing.

    *)
}
OCaml

Innovation. Community. Security.