diff --git a/Text/Regex/PCRE/Rex.hs b/Text/Regex/PCRE/Rex.hs
--- a/Text/Regex/PCRE/Rex.hs
+++ b/Text/Regex/PCRE/Rex.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE TemplateHaskell #-}
 {-# LANGUAGE QuasiQuotes #-}
 {-# LANGUAGE TupleSections #-}
@@ -331,6 +332,9 @@
          . TupE
          -- filter out all "Nothing" exprs
          -- [(Expr, Variable applied to)]
+#if MIN_VERSION_template_haskell(2,16,0)
+         . map Just
+#endif
          $ [AppE x (VarE v) | (Just x, v) <- zip xs vs]
       where
         makeLets _ [] = return []
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,11 @@
 # Changelog
 
+## 0.6.1
+
+  * Now compiles with GHC-8.10. See [#13][]
+
+[#13]: https://github.com/mgsloan/rex/issues/13
+
 ## 0.6
 
   * Made the generated code total. See [#10][]
diff --git a/rex.cabal b/rex.cabal
--- a/rex.cabal
+++ b/rex.cabal
@@ -1,5 +1,5 @@
 Name:                rex
-Version:             0.6
+Version:             0.6.1
 Synopsis:            A quasi-quoter for typeful results of regex captures.
 Description:         Provides a quasi-quoter for regular expressions which
                      yields a tuple, of appropriate arity and types,
