From 73ccc7f3d086d2f854bba249231991aeb6cf6101 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 11 Nov 2018 14:10:53 +0100 Subject: Fix CPP conditional for TH pragma The condition was from an earlier version. --- src/Text/Pandoc/Extensions.hs | 4 ++-- src/Text/Pandoc/Filter.hs | 2 +- src/Text/Pandoc/Options.hs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3