Module SkhcConfig.MiscSource

Operations on the .misc section.

Sourcetype t

type of the misc section.

Sourceval section : string

section name.

Sourceval default : t

default is the section used if the default section is missing from the configuration file.

Sourceval init : unicode_normalization_form:Uunf.form -> duplicate_query: (unit, unit, unit, unit, unit) SkhcQuery.Field.t SkhcQuery.Query.t option -> t

init ~unicode_normalization_form ~duplicate_query creates a misc section with unicode_normalization_form and duplicate_query.

Sourceval of_section : Section.t -> t

of_section section parse section to create a misc section. If an expected key is missing from section, the key is associated with its default value.

Sourceval to_section : t -> Section.t

to_section default serializes misc into a section.

Sourceval unicode_normalization_form : t -> Uunf.form

unicode_normalization_form default returns the unicode normalization form used.

Sourceval duplicate_query : t -> (unit, unit, unit, unit, unit) SkhcQuery.Field.t SkhcQuery.Query.t option

duplicate_query default returns the query used for fetching duuplicated music.

  • since 0.3.0
Sourceval set_duplicate_query : (unit, unit, unit, unit, unit) SkhcQuery.Field.t SkhcQuery.Query.t option -> t -> t

set_dupplicate_query query config sets the duplicate_query key of config.

  • since 0.3.0