From 8f5ab975695b77d92f5bd6b0faeb0ccaf7e019a5 Mon Sep 17 00:00:00 2001
From: Vanessa McHale <vmchale@users.noreply.github.com>
Date: Mon, 9 Sep 2019 05:28:17 +0000
Subject: [PATCH] Add to other-extensions field for use by cabal solver (#5728)

---
 pandoc.cabal | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pandoc.cabal b/pandoc.cabal
index fd95db3ad..b550fa1b0 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -443,6 +443,7 @@ library
      other-modules: Text.Pandoc.Data
   if flag(derive_json_via_th)
      cpp-options:   -DDERIVE_JSON_VIA_TH
+     other-extensions: TemplateHaskell
   if os(windows)
     cpp-options:      -D_WINDOWS
   ghc-options:     -Wall -fno-warn-unused-do-bind