gentoo/dev-haskell/dbus/files/dbus-1.2.27-template-haskell.patch
Mark Wright 4184202494
dev-haskell/dbus: Bump to 1.2.27, patch to allow earlier TH
Patch (by me) to allow earlier template-haskell versions.

Tests pass with network-sandbox, thanks to eroen for reporting.

Fix: dbus depends on nonexistent version of lens #1360, thanks to Hypoon
for reporting.

Closes: https://github.com/gentoo-haskell/gentoo-haskell/issues/1360
Closes: https://bugs.gentoo.org/575254
Signed-off-by: Mark Wright <gienah@gentoo.org>
2022-11-15 14:40:09 +11:00

15 lines
506 B
Diff

--- dbus-1.2.27-orig/lib/DBus/Generation.hs 2022-07-13 00:32:15.000000000 +1000
+++ dbus-1.2.27/lib/DBus/Generation.hs 2022-11-15 11:11:32.291154128 +1100
@@ -148,7 +148,11 @@
makeFromVariantApp name = AppE (VarE 'T.fromVariant) $ VarE name
makeJustPattern :: Name -> Pat
+#if MIN_VERSION_template_haskell(2,18,0)
makeJustPattern name = ConP 'Just [] [VarP name]
+#else
+makeJustPattern name = ConP 'Just [VarP name]
+#endif
mapOrHead ::
(Num a, Eq a) => a -> (t -> b) -> [t] -> ([b] -> b) -> b