configurator-pg 0.1.0.1 → 0.1.0.2
raw patch · 6 files changed
+103/−9 lines, 6 filesdep +transformersdep ~HUnitdep ~basedep ~bytestringPVP ok
version bump matches the API change (PVP)
Dependencies added: transformers
Dependency ranges changed: HUnit, base, bytestring, containers, filepath, scientific
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- configurator-pg.cabal +12/−9
- tests/resources/import.cfg +4/−0
- tests/resources/interp.cfg +18/−0
- tests/resources/pathological.cfg +47/−0
- tests/resources/readme.cfg +17/−0
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for configurator-pg +## 0.1.0.2 -- 2019-06-04++* Lower bounds to support GHC 7.10.3.+* Include test data to fix tests.+ ## 0.1.0.1 -- 2019-06-03 * Include README.md in release.
configurator-pg.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: configurator-pg-version: 0.1.0.1+version: 0.1.0.2 synopsis: Reduced parser for configurator-ng config files description: This module provides a simplified and updated interface to the@@ -21,7 +21,8 @@ Copyright 2015-2016 Leon P Smith Copyright 2019 Robert Vollmert category: Configuration, Data-extra-source-files: CHANGELOG.md, README.md+extra-source-files: CHANGELOG.md, README.md,+ tests/resources/*.cfg build-type: Simple library@@ -30,12 +31,14 @@ Data.Configurator.Parser Data.Configurator.Syntax Data.Configurator.Types- build-depends: base >= 4.9.1 && < 4.13+ build-depends: base >= 4.8.2 && < 4.13 , attoparsec >= 0.13.1 && < 0.14- , containers >= 0.5.7.1 && < 0.7+ , containers >= 0.5.6.2 && < 0.7 , protolude >= 0.1.10 && < 0.3- , scientific >= 0.3.5.2 && < 0.4+ , scientific >= 0.3.4.9 && < 0.4 , text >= 1.2.2.2 && < 1.3+ if impl(ghc < 8)+ build-depends: transformers >= 0.4.2 && < 0.5 hs-source-dirs: src default-language: Haskell2010 default-extensions: OverloadedStrings, NoImplicitPrelude@@ -45,11 +48,11 @@ type: exitcode-stdio-1.0 main-is: Test.hs hs-source-dirs: tests- build-depends: base >= 4.9.1 && < 4.13+ build-depends: base >= 4.8.2 && < 4.13 , configurator-pg- , HUnit >= 1.5 && < 1.7- , bytestring >= 0.10.8.1 && < 0.11- , filepath >= 1.4.1.1 && < 1.5+ , HUnit >= 1.3.1.2 && < 1.7+ , bytestring >= 0.10.6 && < 0.11+ , filepath >= 1.4 && < 1.5 , protolude >= 0.1.10 && < 0.3 , test-framework >= 0.8.1.1 && < 0.9 , test-framework-hunit >= 0.3.0.2 && < 0.4
+ tests/resources/import.cfg view
@@ -0,0 +1,4 @@+x {+ import "pathological.cfg"+}+
+ tests/resources/interp.cfg view
@@ -0,0 +1,18 @@+services = "$(HOME)/services"+root = "can be overwritten by inner block."+myprogram {+ name = "myprogram"+ root = "$(services)/$(name)"+ exec = "$(root)/$(name)"+ stdout = "$(root)/stdout"+ stderr = "$(root)/stderr"+ delay = 1+}+dir = "$(HOME)"+top {+ dir = "$(dir)/top"+ layer1 {+ dir = "$(dir)/layer1"+ layer2.dir = "$(dir)/layer2"+ }+}
+ tests/resources/pathological.cfg view
@@ -0,0 +1,47 @@+# Comment++aa # Comment+= # Comment+ 1 # Comment++ab =+"foo"+++ac {+ # fnord+ x=1++ y=true++ #blorg+}++ad = false+ae = 1+af+=+[+2+#foo+,+#bar+3+#baz+]#quux++ag { q-e { i_u9 { a=false}}}++ba = "$(HOME)"++xs = [1,2,"3"]++c = "x"++#+notacomment = 42++#; comment {+ x = 1+ msg = "foo"+}
+ tests/resources/readme.cfg view
@@ -0,0 +1,17 @@+# listen address+hostname = "localhost"+port = 8000++#logdir = "$(HOME)/logs"+logdir = "/var/log"+logfile = "$(logdir)/log.txt"+loglevels = [1, 4, 5]++users {+ alice = "alice@example.com"+ bob = "bob@example.com"+}++passwords {+ import "secrets/passwords.txt"+}