lpsmith / configurator-ng Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bos/configurator
A Haskell library supporting flexible, dynamic file-based configuration.
License: Other
This project forked from bos/configurator
A Haskell library supporting flexible, dynamic file-based configuration.
License: Other
My configuration file contains a field for a web server port. I'd like to read the value from an environment variable, but doing so always treats it as a string.
server-port = "$(FOO)"
Running with FOO exported to 3000 causes this error:
ConfigError {
configErrorLocation = Key "" "server-port",
configConversionError = Just [
ConversionError {
conversionErrorLoc = "boundedIntegerValue",
conversionErrorWhy = TypeError,
conversionErrorVal = Just (String "3000"),
conversionErrorType = Just Int,
conversionErrorMsg = Nothing
}
]
}
I tried this too
server-port = $(FOO)
but it reports ParseError "test.conf" "endOfInput"
.
Is there something I can do in my code to allow both literal integers and those from environment variables?
(Context: PostgREST/postgrest#826)
It's not really clear to me which configuration formats this library supports and where the formats are specified. I would like a library to help validate my toml files, is that possible?
This repo already has existing tags corresponding to configurator versions. I was trying to see if you have any outstanding changes in git that you haven't released to hackage, but this prevented me from doing that. This project is different enough that I don't think you need to preserve the git history. Giving attribution in the cabal file and documentation is enough.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.