diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2018-11-11 14:10:53 +0100 | 
|---|---|---|
| committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-11-11 14:10:53 +0100 | 
| commit | 73ccc7f3d086d2f854bba249231991aeb6cf6101 (patch) | |
| tree | 6f5c38d200d6672cf4090a94540408a9fe5b7443 /src/Text | |
| parent | 2f583dab9d72be4e8abfbbd9cdec9dc658f4ada1 (diff) | |
| download | pandoc-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.hs | 4 | ||||
| -rw-r--r-- | src/Text/Pandoc/Filter.hs | 2 | ||||
| -rw-r--r-- | src/Text/Pandoc/Options.hs | 2 | 
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 | 
