config-parser: Parse config files using parsec and generate parse errors on unhandled keys
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
This is yet another entry in Haskell's enourmous collection of config-file parsing libraries. It lacks many of the bells and whistles of other config-file parsing libraries, such as hierarchical sections and on-the-fly reloading. On the other hand, it has a combination of features I was unable to find in other libraries:
Keys and values are parsed with configurable parsec parsers, resulting in flexible syntax and pretty error messages.
Custom parsers can be created with parsec to handle values of any type.
Keys that aren't explicitly handled result in parse errors.
If you don't need all of these features, there are probably better libraries out there for you. If you're free to use its idiosyncratic file format, the config-value library, in particular, is excelent.
Properties
Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.2.0.0, 1.0.0.0, 1.1.0.0, 1.1.0.1, 1.2.0.0, 1.2.0.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.9 && <4.11), parsec (>=3.1 && <3.2), text (>=1.2 && <1.3) [details] |
License | MIT |
Author | Ben Hamlin |
Maintainer | protob3n@gmail.com |
Category | Text |
Home page | https://github.com/protoben/config-parser |
Uploaded | by BenHamlin at 2018-01-21T04:18:53Z |
Modules
[Index]
Downloads
- config-parser-1.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees