opt-env-conf-0.5.0.0: Settings parsing for Haskell: command-line arguments, environment variables, and configuration values.
Safe HaskellSafe-Inferred
LanguageHaskell2010

OptEnvConf.Casing

Synopsis

Casing

toArgCase :: String -> String Source #

Turn a string into arg case for option names

Example: this-is-arg-case

toEnvCase :: String -> String Source #

Turn a string into env case for environment variable names

Example: THIS_IS_ENV_CASE

toConfigCase :: String -> String Source #

Turn a string into config case for configuration value names

Example: this-is-config-case

Internal

toShellFunctionCase :: String -> String Source #

Turn a string into a string that can be used as a shell function name (for completion)

Example: this_is_shell_function_case