From ee75a7a9f9b75ddff6640edee6e46ba6a8cf09c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Choutri?= Date: Mon, 2 Oct 2023 17:44:19 +0200 Subject: [PATCH] Update src/OddJobs/Job.hs Co-authored-by: Jappie Klooster --- src/OddJobs/Job.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OddJobs/Job.hs b/src/OddJobs/Job.hs index 7bcc517..3cd5f2c 100644 --- a/src/OddJobs/Job.hs +++ b/src/OddJobs/Job.hs @@ -129,7 +129,11 @@ import Prelude hiding (log) import GHC.Exts (toList) import Database.PostgreSQL.Simple.Types as PGS (Identifier(..)) import Database.PostgreSQL.Simple.ToField as PGS (toField) +#if MIN_VERSION_aeson(2,2,0) import Data.Aeson.Types +#else +import Data.Aeson.Internal (iparse, IResult(..), formatError) +#endif -- | The documentation of odd-jobs currently promotes 'startJobRunner', which -- expects a fairly detailed 'Config' record, as a top-level function for