Compatibility with GHC 8.10 and template-haskell 2.16.
Taken from
https://raw.githubusercontent.com/archlinux/svntogit-community/packages/haskell-language-haskell-extract/trunk/ghc-8.10.patch
diff --git a/src/Language/Haskell/Extract.hs b/src/Language/Haskell/Extract.hs
index 3e8958b..43dfe04 100644
--- a/src/Language/Haskell/Extract.hs
+++ b/src/Language/Haskell/Extract.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
module Language.Haskell.Extract (
functionExtractor,
functionExtractorMap,
@@ -25,7 +26,11 @@ extractAllFunctions pattern =
functionExtractor :: String -> ExpQ
functionExtractor pattern =
do functions <- extractAllFunctions pattern
- let makePair n = TupE [ LitE $ StringL n , VarE $ mkName n]
+ let makePair n = TupE
+#if MIN_VERSION_template_haskell(2,16,0)
+ $ map Just
+#endif
+ [ LitE $ StringL n , VarE $ mkName n]
return $ ListE $ map makePair functions
tr>
Age | Commit message (Expand) | Author |
2023-07-26 | gnu: toot: Update to 0.38.1....* gnu/packages/mastodon.scm (toot): Update to 0.38.1.
[inputs]: Add python-tomlkit.
| Efraim Flashner |
2023-07-10 | gnu: tuba: Fix videoplayer crash and webp support....* gnu/packages/mastodon.scm (tuba)[arguments]<phases: Add lib-vars-wrap
phase to set GST_PLUGIN_SYSTEM_PATH and GDK_PIXBUF_MODULE_FILE
variables.
(tuba)[native-inputs]: Add gdk-pixbuf.
(tuba)[inputs]: Add gstreamer, gst-plugins-bad, gst-plugins-base,
gst-plugins-good and webp-pixbuf-loader.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
| Lilah Tascheter |
2023-07-10 | gnu: tuba: Update to new style....* gnu/packages/mastodon.scm (tuba)[arguments]: Update to new style.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
| Lilah Tascheter |
2023-06-30 | gnu: toot: Update to 0.37.0....* gnu/packages/mastodon.scm (toot): Update to 0.37.0.
[native-inputs]: Add python-psycopg2.
| Efraim Flashner |
2023-06-14 | gnu: Add tuba....* gnu/packages/mastodon.scm (tuba): New variable.
| Efraim Flashner |
2023-03-22 | gnu: toot: Update to 0.36.0....* gnu/packages/mastodon.scm (toot): Update to 0.36.0.
| Efraim Flashner |
2023-03-08 | gnu: toot: Update to 0.35.0....* gnu/packages/mastodon.scm (toot): Update to 0.35.0.
| Efraim Flashner |
2022-12-18 | gnu: toot: Update to 0.32.1....* gnu/packages/mastodon.scm (toot): Update to 0.32.1.
| Efraim Flashner |
2022-12-06 | gnu: toot: Update to 0.30.1....* gnu/packages/mastodon.scm (toot): Update to 0.30.1.
[arguments]: Add a phase to remove integration tests.
| Efraim Flashner |