1 diff --git a/src/Language/Haskell/Extract.hs b/src/Language/Haskell/Extract.hs
2 index 3e8958b..43dfe04 100644
3 --- a/src/Language/Haskell/Extract.hs
4 +++ b/src/Language/Haskell/Extract.hs
7 module Language.Haskell.Extract (
10 @@ -25,7 +26,11 @@ extractAllFunctions pattern =
11 functionExtractor :: String -> ExpQ
12 functionExtractor pattern =
13 do functions <- extractAllFunctions pattern
14 - let makePair n = TupE [ LitE $ StringL n , VarE $ mkName n]
15 + let makePair n = TupE
16 +#if MIN_VERSION_template_haskell(2,16,0)
19 + [ LitE $ StringL n , VarE $ mkName n]
20 return $ ListE $ map makePair functions