Logo GenPRES

Validation Module

Holds the validators and the options for the years, months, weeks and days of an age, with at most 120 years.

Functions and values

Function or value Description

dayOptions

Full Usage: dayOptions

Returns: int<MeasureProduct<day, MeasureOne>> list

The days of an age the user picks from.

Returns: int<MeasureProduct<day, MeasureOne>> list

dayValidator

Full Usage: dayValidator

Returns: string -> int option -> Result<int<MeasureProduct<day, MeasureOne>> option, ValidationErrors>
Returns: string -> int option -> Result<int<MeasureProduct<day, MeasureOne>> option, ValidationErrors>

maxDay

Full Usage: maxDay

Returns: int

The highest day of an age.

Returns: int

maxMonth

Full Usage: maxMonth

Returns: int

The highest month of an age.

Returns: int

maxWeek

Full Usage: maxWeek

Returns: int

The highest week of an age.

Returns: int

maxYear

Full Usage: maxYear

Returns: int<MeasureProduct<year, MeasureOne>>

monthOptions

Full Usage: monthOptions

Returns: int<MeasureProduct<month, MeasureOne>> list

The months of an age the user picks from.

Returns: int<MeasureProduct<month, MeasureOne>> list

monthValidator

Full Usage: monthValidator

Returns: string -> int option -> Result<int<MeasureProduct<month, MeasureOne>> option, ValidationErrors>
Returns: string -> int option -> Result<int<MeasureProduct<month, MeasureOne>> option, ValidationErrors>

weekOptions

Full Usage: weekOptions

Returns: int<MeasureProduct<week, MeasureOne>> list

The weeks of an age the user picks from.

Returns: int<MeasureProduct<week, MeasureOne>> list

weekValidator

Full Usage: weekValidator

Returns: string -> int option -> Result<int<MeasureProduct<week, MeasureOne>> option, ValidationErrors>
Returns: string -> int option -> Result<int<MeasureProduct<week, MeasureOne>> option, ValidationErrors>

yearOptions

Full Usage: yearOptions

Returns: int<MeasureProduct<year, MeasureOne>> list

The years of an age the user picks from.

Returns: int<MeasureProduct<year, MeasureOne>> list

yearValidator

Full Usage: yearValidator

Returns: string -> int option -> Result<int<MeasureProduct<year, MeasureOne>> option, ValidationErrors>
Returns: string -> int option -> Result<int<MeasureProduct<year, MeasureOne>> option, ValidationErrors>

Type something to start searching.