registry-options-0.2.0.0: application options parsing
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Registry.Options.Main

Description

This module provides top level functions to create a parser from its definition and feed it values coming from various sources (command line, environment, configuration file) to parse a command

Synopsis

Documentation

run :: forall s a m. (KnownSymbol s, Typeable a, MonadIO m) => Registry _ _ -> m (Either Text a) Source #

Run a parser defined in a registry with values coming from default sources

runWith :: forall s a m. (KnownSymbol s, Typeable a, MonadIO m) => (Registry _ _ -> Registry _ _) -> Registry _ _ -> m (Either Text a) Source #

Run a parser defined in a registry with values coming from modified sources using the setter functions defined in Sources