Skip to content

Commit bbb93dc

Browse files
Mitsutoshi Aoemaoe
Mitsutoshi Aoe
authored andcommitted
Switch the default decoder to strictDecoder (fixes #64)
1 parent f11e33d commit bbb93dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/InfluxDB/JSON.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import qualified Data.Vector as V
5353

5454
import Database.InfluxDB.Types
5555

56-
-- | Parse a JSON response with the 'lenientDecoder'. This can be useful to
56+
-- | Parse a JSON response with the 'strictDecoder'. This can be useful to
5757
-- implement the 'Database.InfluxDB.Query.parseResults' method.
5858
parseResultsWith
5959
:: (Maybe Text -> HashMap Text Text -> Vector Text -> Array -> A.Parser a)
@@ -67,7 +67,7 @@ parseResultsWith
6767
-- to construct a value.
6868
-> Value
6969
-> A.Parser (Vector a)
70-
parseResultsWith = parseResultsWithDecoder lenientDecoder
70+
parseResultsWith = parseResultsWithDecoder strictDecoder
7171

7272
-- | Parse a JSON response with the specified decoder settings.
7373
parseResultsWithDecoder

0 commit comments

Comments
 (0)