package dune

  1. Overview
  2. Docs
Fast, portable and opinionated build system

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-build-info-1.11.4.tbz
sha256=77cb5f483221b266ded2b85fc84173ae0089a25134a086be922e82c131456ce6
sha512=02f00fd872aa49b832fc8c1e928409f23c79ddf84a53009a58875f222cca36fbb92c905e12c539caec9cbad723f195a8aa24218382dca35a903b3f52b11f06f2

doc/dune.configurator/Configurator/V1/Flags/index.html

Module V1.Flags

val write_sexp : string -> string list -> unit

write_sexp fname s writes the list of strings s to the file fname in an appropriate format so that it can used in jbuild files with (:include [fname]).

val write_lines : string -> string list -> unit

write_lines fname s writes the list of string s to the file fname with one line per string so that it can be used in Dune action rules with %{read-lines:<path>}.

val extract_comma_space_separated_words : string -> string list

extract_comma_space_separated_words s returns a list of words in s that are separated by a newline, tab, space or comma character.

val extract_blank_separated_words : string -> string list

extract_blank_separated_words s returns a list of words in s that are separated by a tab or space character.

val extract_words : string -> is_word_char:(char -> bool) -> string list

extract_words s ~is_word_char will split the string s into a list of words. A valid word character is defined by the is_word_char predicate returning true and anything else is considered a separator. Any blank words are filtered out of the results.

OCaml

Innovation. Community. Security.