package tyxml-syntax

  1. Overview
  2. Docs
val find : ('a -> bool) -> 'a list -> 'a option

Similar to List.find, but evaluates to an option instead of raising Not_found.

Markup language

type lang =
  1. | Html
  2. | Svg
val lang : lang -> string
val implementation : lang -> string
val set_implementation : lang -> string -> unit
type name = lang * string

Expression helpers.

wrap implementation loc e creates a parse tree for implementation.Xml.W.return e.

type 'a value =
  1. | Val of 'a
  2. | Antiquot of Migrate_parsetree.Ast_408.Parsetree.expression
val map_value : ('a -> 'b) -> 'a value -> 'b value
val value : 'a -> 'a value
OCaml

Innovation. Community. Security.