Module Capitalization_ppx_configuration

module Single_word : sig ... end
type t =
  1. | Multi_word of Capitalization.t
  2. | Single_word of Single_word.t

Defines the ~capitalize:"string" ppx argument.

  • valid multi-word options are listed on error
  • single word options are also considered valid
val argument_name : Base.string
val apply_to_snake_case_exn : t -> Base.string -> Base.string

Applies the capitalization to an ocaml identifier.

Raises if the identifier has multiple words and only a single word capitalization was given. The location of the error will be the capitalize arg and the error lists compatible multi-word capitalization schemes.