Module
Yoga.Config
- Package
- purescript-yoga-config
- Repository
- rowtype-yoga/purescript-yoga-config
#loadConfig Source
loadConfig :: forall @a. ReadForeign a => ConfigSource -> Aff (E a)#loadConfigFromSources Source
loadConfigFromSources :: forall @a. ReadForeign a => Array ConfigSource -> Aff (E a)Re-exports from Yoga.Config.Source
#ConfigSource Source
#override Source
override :: ConfigSource -> ConfigSource -> ConfigSource#fromYAMLString Source
fromYAMLString :: String -> ConfigSource#fromYAMLFile Source
fromYAMLFile :: String -> ConfigSource#fromTOMLString Source
fromTOMLString :: String -> ConfigSource#fromTOMLFile Source
fromTOMLFile :: String -> ConfigSource#fromRecord Source
fromRecord :: forall a. WriteForeign a => a -> ConfigSource#fromProfileDir Source
fromProfileDir :: { default :: String, dir :: String, envVar :: String, ext :: String } -> ConfigSource#fromJSONString Source
fromJSONString :: String -> ConfigSource#fromJSONFile Source
fromJSONFile :: String -> ConfigSource#fromFile Source
fromFile :: String -> ConfigSource#fromEnvPrefix Source
fromEnvPrefix :: String -> ConfigSourceRe-exports from Yoga.Config.Types
#Secret Source
newtype Secret aA secret value that masks itself in Show to prevent accidental logging.
Use revealSecret to access the underlying value.
Instances
(Eq a) => Eq (Secret a)(Ord a) => Ord (Secret a)Show (Secret a)(ReadForeign a) => ReadForeign (Secret a)(WriteForeign a) => WriteForeign (Secret a)
#unNonBlank Source
unNonBlank :: NonBlank -> String#revealSecret Source
revealSecret :: forall a. Secret a -> a#bytesToNumber Source
bytesToNumber :: Bytes -> Number