From 3494b6efd32bebb36e3bef204be6d51650ac6085 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 28 Dec 2017 12:06:38 -0800 Subject: Powerpoint writer tests: use IO. Otherwise we can't find the data files when compiled with -embed_data_files. --- src/Text/Pandoc/Class.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs index d0e33268f..f93ddc7d1 100644 --- a/src/Text/Pandoc/Class.hs +++ b/src/Text/Pandoc/Class.hs @@ -145,6 +145,8 @@ import System.Directory (createDirectoryIfMissing, getDirectoryContents, import System.FilePath ((), (<.>), takeDirectory, takeExtension, dropExtension, isRelative, normalise) import qualified System.FilePath.Glob as IO (glob) +import qualified System.FilePath.Posix as Posix +import System.FilePath (splitDirectories) import qualified System.Directory as IO (getModificationTime) import Control.Monad as M (fail) import Control.Monad.State.Strict @@ -161,8 +163,6 @@ import Text.Pandoc.Translations (Term(..), Translations, lookupTerm, import qualified Debug.Trace #ifdef EMBED_DATA_FILES import Text.Pandoc.Data (dataFiles) -import qualified System.FilePath.Posix as Posix -import System.FilePath (splitDirectories) #else import qualified Paths_pandoc as Paths #endif -- cgit v1.2.3