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 le>
aboutsummaryrefslogtreecommitdiff
path: root/tests/store-roots.scm
2f488b658b1adb5aff09f04a9bed0221aee1&showmsg=1'>Expand)
AgeCommit message (Expand)Author
Author
2020-05-05nls: Update.Ludovic Courtès
2020-04-12nls: Update.Ludovic Courtès
2020-03-23nls: Update.Ludovic Courtès
2019-05-13doc: Add Russian translation....* doc/local.mk (info_TEXINFOS): Add guix.ru.texi. (TRANSLATED_INFO): Add {guix,contributing}.ru.texi. * po/doc/local.mk (DOC_PO_FILES): Add guix-manual.ru.po. * po/doc/guix-manual.ru.po: New file. Ludovic Courtès