diff options
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 26b0e1b1d..e4b38acc7 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE DeriveDataTypeable, CPP, TemplateHaskell #-} +{-# LANGUAGE DeriveDataTypeable, CPP #-} {- Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu> @@ -103,7 +103,7 @@ import qualified Data.ByteString as B import Network.HTTP (findHeader, rspBody, simpleHTTP, RequestMethod(..), HeaderName(..), mkRequest) #ifdef EMBED_DATA_FILES -import Data.FileEmbed +import Text.Pandoc.Data (dataFiles) #else import Paths_pandoc (getDataFileName) #endif @@ -515,11 +515,6 @@ inDirectory path action = do setCurrentDirectory oldDir return result -#ifdef EMBED_DATA_FILES -dataFiles :: [(FilePath, B.ByteString)] -dataFiles = $(embedDir "data") -#endif - readDefaultDataFile :: FilePath -> IO B.ByteString readDefaultDataFile fname = #ifdef EMBED_DATA_FILES |