cfg-0.0.2.2: Type directed application configuration parsing and accessors
Copyright© Jonathan Lorimer 2023
LicenseMIT
Maintainerjonathanlorimer@pm.me
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Cfg.Source.Default

Description

This module contains code related to defaulting.

Since: 0.0.2.0

Synopsis

Documentation

class DefaultSource (a :: k) where Source #

This class lets us represent defaults as a function from record field names to Maybe values. Nothing represents the absence of a default, and the default implementation is to always return Nothing.

Since: 0.0.2.0

Minimal complete definition

Nothing

Methods

defaults Source #

Arguments

:: Text

Record field label

-> Maybe Text

Serialized default