package ppx_string

  1. Overview
  2. Docs
Ppx extension for string interpolation

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=06b4e061fb5e2b2a85298c9829cc31a1af0a9b8e63fdee9048c76ec8d52d16ef

doc/ppx_string.runtime/Ppx_string_runtime/For_string/index.html

Module Ppx_string_runtime.For_stringSource

Sourceval empty : string

Empty string.

Sourceval of_string : string -> string

Literal string.

Sourceval convert : string -> string

Finish a conversion to t.

Sourceval concat : string list -> string

Combine multiple values in order.

Sourceval pad : string -> len:int -> string

Pad to some minimum length.

Sourceval identity : string -> string

Identity function.

Used for ensuring an argument has type t in expanded code, without needing the type t to be exported explicitly for a type annotation. See note above about destructive substitution.

OCaml

Innovation. Community. Security.