Popularity
8.4
Stable
Activity
0.0
Stable
21
19
5
Monthly Downloads: 25
Programming language: Haskell
License: MIT License
Tags:
Configuration
Latest version: v0.4.0
yaml-config alternatives and similar packages
Based on the "Configuration" category.
Alternatively, view yaml-config alternatives based on common mentions on social networks and blogs.
-
rasa-example-config
Extremely modular text editor built in Haskell -
configurator
A Haskell library supporting flexible, dynamic file-based configuration. -
configuration-tools
Tools for defining and parsing configurations of Haskell applications -
config-value-getopt
Interface between config-value and System.GetOpt -
typeparams
Lens-like interface for type level parameters; allows unboxed unboxed vectors and supercompilation -
configifier
parser for config files, shell variables, command line args. -
configurator-ng
A Haskell library supporting flexible, dynamic file-based configuration. -
configurator-pg
Reduced parser for configurator-ng config files -
aws-mfa-credentials
Keep your AWS credentials file up to date with MFA-carrying temporary credentials
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of yaml-config or a related project?
README
yaml-config 
Load, parse and find fields in YAML config files.
Example
YAML config
server:
port: 8080
logs:
access: /var/log/server/access.log
error: /var/log/server/error.log
Haskell source
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Main where
import Prelude hiding (lookup)
import Data.Word (Word16)
import Data.Yaml.Config (load, subconfig, lookupDefault, lookup)
main :: IO ()
main = do
config <- load "./example.yaml"
serverConfig <- subconfig "server" config
let interface = lookupDefault "interface" "127.0.0.1" serverConfig
port :: Word16 = lookupDefault "port" 80 serverConfig
logConfig <- subconfig "logs" serverConfig
accessLog <- lookup "access" logConfig
errorLog <- lookup "error" logConfig
mapM_ putStrLn [interface, (show port), errorLog, accessLog]
Result
$ ./server
127.0.0.1
8080
/var/log/server/error.log
/var/log/server/access.log