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 Mar 26, 2019
1 parent f11e33d commit bbb93dc
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 @@ -53,7 +53,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 @@ -67,7 +67,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 bbb93dc

Please sign in to comment.