Update configurator-pg to 0.2.0 (better error messages) (#1457)

* Don't indent first line of configuration parser error messages

configurator-pg returns multi-line errors now. Alternatively,
we could indent all the lines.
This commit is contained in:
Robert
2020-03-12 10:04:44 -05:00
committed by GitHub
parent dea57bd1be
commit 5b5945e427
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ library
, bytestring >= 0.10.8 && < 0.11
, case-insensitive >= 1.2 && < 1.3
, cassava >= 0.4.5 && < 0.6
, configurator-pg >= 0.1.0.6 && < 0.2
, configurator-pg >= 0.2 && < 0.3
, containers >= 0.5.7 && < 0.7
, contravariant >= 1.4 && < 1.6
, contravariant-extras >= 0.3.3 && < 0.4
+1 -1
View File
@@ -140,7 +140,7 @@ readOptions = do
-- Now read the actual config file
conf <- catches (C.load cfgPath)
[ Handler (\(ex :: IOError) -> exitErr $ "Cannot open config file:\n\t" <> show ex)
, Handler (\(C.ParseError err) -> exitErr $ "Error parsing config file:\n\t" <> err)
, Handler (\(C.ParseError err) -> exitErr $ "Error parsing config file:\n" <> err)
]
case C.runParser parseConfig conf of
+1 -1
View File
@@ -15,6 +15,6 @@ nix:
extra-deps:
- HsYAML-0.2.1.0@sha256:e4677daeba57f7a1e9a709a1f3022fe937336c91513e893166bd1f023f530d68,5311
- HsYAML-aeson-0.2.0.0@sha256:04796abfc01cffded83f37a10e6edba4f0c0a15d45bef44fc5bb4313d9c87757,1791
- configurator-pg-0.1.0.6@sha256:fa16d1404fc6320fb6ec52f84b1a2128f431c4ab57db78763082ac7871faa943,2943
- configurator-pg-0.2.0@sha256:08dcfadbe31e9e505d0bed1ab034105e1735141499734ad52d1c5ac980cde4a6,2939
- hspec-wai-0.10.1@sha256:56dd9ec1d56f47ef1946f71f7cbf070e4c285f718cac1b158400ae5e7172ef47,2290
- hspec-wai-json-0.10.1@sha256:67b405c38f0a9e2771480c8d3ecd8aeb8d8776a35d3b2906cb1b76c9538617e4,1629
+4 -4
View File
@@ -19,12 +19,12 @@ packages:
original:
hackage: HsYAML-aeson-0.2.0.0@sha256:04796abfc01cffded83f37a10e6edba4f0c0a15d45bef44fc5bb4313d9c87757,1791
- completed:
hackage: configurator-pg-0.1.0.6@sha256:fa16d1404fc6320fb6ec52f84b1a2128f431c4ab57db78763082ac7871faa943,2943
hackage: configurator-pg-0.2.0@sha256:08dcfadbe31e9e505d0bed1ab034105e1735141499734ad52d1c5ac980cde4a6,2939
pantry-tree:
size: 1008
sha256: 35744e28f58efd93ad13429d91c7c306dbcd531401132778cb0dc09de87b66be
size: 1748
sha256: 760eb12ee3d81b95b68ee10d5d85171b117826f44242b2749d48791efad6c891
original:
hackage: configurator-pg-0.1.0.6@sha256:fa16d1404fc6320fb6ec52f84b1a2128f431c4ab57db78763082ac7871faa943,2943
hackage: configurator-pg-0.2.0@sha256:08dcfadbe31e9e505d0bed1ab034105e1735141499734ad52d1c5ac980cde4a6,2939
- completed:
hackage: hspec-wai-0.10.1@sha256:56dd9ec1d56f47ef1946f71f7cbf070e4c285f718cac1b158400ae5e7172ef47,2290
pantry-tree: