Skip to content

Commit

Permalink
Harmonize Aeson 2.1 and 2.2 support
Browse files Browse the repository at this point in the history
Aeson <2.2 also provides json' within the Data.Aeson.Parser module. This module has been extracted to attoparsec-aeson with Aeson >= 2.2
  • Loading branch information
Vekhir authored Sep 21, 2023
1 parent 4a40d43 commit 32051f6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Network/Http/Inconvenience.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ import qualified Blaze.ByteString.Builder as Builder (
)
import qualified Blaze.ByteString.Builder.Char8 as Builder (fromString)
import Control.Exception (Exception, bracket, throw)
#if !MIN_VERSION_aeson(2,2,0)
import Data.Aeson (FromJSON, Result (..), ToJSON, encode, fromJSON, json')
#else
import Data.Aeson (FromJSON, Result (..), ToJSON, encode, fromJSON)
import Data.Aeson.Parser (json')
#endif
import Data.Bits (Bits (..))
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as S
Expand Down

0 comments on commit 32051f6

Please sign in to comment.