Skip to content

Commit 80cb9ee

Browse files
mpickeringhvr
authored andcommitted
Adapt for changes to liftTyped
1 parent 7f11372 commit 80cb9ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Data/Text.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ instance Data Text where
430430
-- @since 1.2.4.0
431431
instance TH.Lift Text where
432432
lift = TH.appE (TH.varE 'pack) . TH.stringE . unpack
433-
#if MIN_VERSION_template_haskell(2,16,0)
433+
#if MIN_VERSION_template_haskell(2,17,0)
434+
liftTyped = TH.unsafeCodeCoerce . TH.lift
435+
#elif MIN_VERSION_template_haskell(2,16,0)
434436
liftTyped = TH.unsafeTExpCoerce . TH.lift
435437
#endif
436438

Data/Text/Lazy.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ instance Data Text where
415415
-- @since 1.2.4.0
416416
instance TH.Lift Text where
417417
lift = TH.appE (TH.varE 'pack) . TH.stringE . unpack
418-
#if MIN_VERSION_template_haskell(2,16,0)
418+
#if MIN_VERSION_template_haskell(2,17,0)
419+
liftTyped = TH.unsafeCodeCoerce . TH.lift
420+
#elif MIN_VERSION_template_haskell(2,16,0)
419421
liftTyped = TH.unsafeTExpCoerce . TH.lift
420422
#endif
421423

0 commit comments

Comments
 (0)