From 251aae3cc8703f8fe08b7f67e3870ec188238e0c Mon Sep 17 00:00:00 2001 From: Mitsutoshi Aoe Date: Sun, 20 May 2018 00:39:43 +0900 Subject: [PATCH] Switch the default decoder to strictDecoder (fixes #64) --- src/Database/InfluxDB/JSON.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/InfluxDB/JSON.hs b/src/Database/InfluxDB/JSON.hs index 2d527c0..1d7e95d 100644 --- a/src/Database/InfluxDB/JSON.hs +++ b/src/Database/InfluxDB/JSON.hs @@ -54,7 +54,7 @@ import qualified Data.Vector as V import Database.InfluxDB.Types --- | Parse a JSON response with the 'lenientDecoder'. This can be useful to +-- | Parse a JSON response with the 'strictDecoder'. This can be useful to -- implement the 'Database.InfluxDB.Query.parseResults' method. parseResultsWith :: (Maybe Text -> HashMap Text Text -> Vector Text -> Array -> A.Parser a) @@ -68,7 +68,7 @@ parseResultsWith -- to construct a value. -> Value -> A.Parser (Vector a) -parseResultsWith = parseResultsWithDecoder lenientDecoder +parseResultsWith = parseResultsWithDecoder strictDecoder -- | Parse a JSON response with the specified decoder settings. parseResultsWithDecoder