Skip to content

Commit

Permalink
Switch the default decoder to strictDecoder (fixes #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsutoshi Aoe authored and maoe committed Jun 17, 2020
1 parent 8eea990 commit 251aae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/InfluxDB/JSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 251aae3

Please sign in to comment.