aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-11-11 14:10:53 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2018-11-11 14:10:53 +0100
commit73ccc7f3d086d2f854bba249231991aeb6cf6101 (patch)
tree6f5c38d200d6672cf4090a94540408a9fe5b7443 /src/Text
parent2f583dab9d72be4e8abfbbd9cdec9dc658f4ada1 (diff)
downloadpandoc-73ccc7f3d086d2f854bba249231991aeb6cf6101.tar.gz
Fix CPP conditional for TH pragma
The condition was from an earlier version.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Extensions.hs4
-rw-r--r--src/Text/Pandoc/Filter.hs2
-rw-r--r--src/Text/Pandoc/Options.hs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs
index 495c6e5de..0e6e38ed1 100644
--- a/src/Text/Pandoc/Extensions.hs
+++ b/src/Text/Pandoc/Extensions.hs
@@ -1,8 +1,8 @@
{-# LANGUAGE CPP #-}
-{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
-#ifndef AVOID_TEMPLATE_HASKELL
+#ifdef DERIVE_JSON_VIA_TH
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
#endif
diff --git a/src/Text/Pandoc/Filter.hs b/src/Text/Pandoc/Filter.hs
index df80d4c82..ac658f5aa 100644
--- a/src/Text/Pandoc/Filter.hs
+++ b/src/Text/Pandoc/Filter.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
-#ifndef AVOID_TEMPLATE_HASKELL
+#ifdef DERIVE_JSON_VIA_TH
{-# LANGUAGE TemplateHaskell #-}
#endif
{-
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs
index cea365ab4..80dab5a14 100644
--- a/src/Text/Pandoc/Options.hs
+++ b/src/Text/Pandoc/Options.hs
@@ -2,7 +2,7 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
-#ifndef AVOID_TEMPLATE_HASKELL
+#ifdef DERIVE_JSON_VIA_TH
{-# LANGUAGE TemplateHaskell #-}
#endif