Skip to content

Commit c78be5d

Browse files
authored
Merge pull request #802 from galenhuntington/master
Support template-haskell 2.17.
2 parents 596163a + 2ef66a7 commit c78be5d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Data/Aeson/Types/Internal.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,9 @@ instance TH.Lift Value where
426426
where a' = V.toList a
427427
lift (Object o) = [| Object (H.fromList . map (first pack) $ o') |]
428428
where o' = map (first unpack) . H.toList $ o
429-
#if MIN_VERSION_template_haskell(2,16,0)
429+
#if MIN_VERSION_template_haskell(2,17,0)
430+
liftTyped = TH.unsafeCodeCoerce . TH.lift
431+
#elif MIN_VERSION_template_haskell(2,16,0)
430432
liftTyped = TH.unsafeTExpCoerce . TH.lift
431433
#endif
432434

aeson.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ library
103103
bytestring >= 0.10.4.0 && < 0.11,
104104
containers >= 0.5.5.1 && < 0.7,
105105
deepseq >= 1.3.0.0 && < 1.5,
106-
ghc-prim >= 0.2 && < 0.7,
107-
template-haskell >= 2.9.0.0 && < 2.17,
106+
ghc-prim >= 0.2 && < 0.8,
107+
template-haskell >= 2.9.0.0 && < 2.18,
108108
text >= 1.2.3.0 && < 1.3,
109109
time >= 1.4 && < 1.11
110110

0 commit comments

Comments
 (0)