Module

Yoga.Config

Package
purescript-yoga-config
Repository
rowtype-yoga/purescript-yoga-config

#readYAML Source

readYAML :: forall @a. ReadForeign a => String -> E a

#readTOML Source

readTOML :: forall @a. ReadForeign a => String -> E a

#loadConfig Source

loadConfig :: forall @a. ReadForeign a => ConfigSource -> Aff (E a)

#loadConfigFromSources Source

Re-exports from Yoga.Config.Source

#fromRecord Source

fromRecord :: forall a. WriteForeign a => a -> ConfigSource

#fromProfileDir Source

fromProfileDir :: { default :: String, dir :: String, envVar :: String, ext :: String } -> ConfigSource

Re-exports from Yoga.Config.Types

#Secret Source

newtype Secret a

A secret value that masks itself in Show to prevent accidental logging. Use revealSecret to access the underlying value.

Instances

#Port Source

newtype Port

A port number (0-65535), parsed from an integer

Constructors

Instances

#NonBlank Source

newtype NonBlank

A non-blank string (not empty, not just whitespace).

Instances

#Duration Source

newtype Duration

A duration parsed from strings like "500ms", "5s", "10m", "2h", "1d"

Constructors

Instances

#Bytes Source

newtype Bytes

Bytes parsed from strings like "100B", "10KB", "5MB", "2GB", "1TB"

Constructors

Instances

#revealSecret Source

revealSecret :: forall a. Secret a -> a

#mkSecret Source

mkSecret :: forall a. a -> Secret a

#bytesToNumber Source