diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-11 23:11:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-11 23:11:37 -0700 |
commit | b3bb9a4384b84500c7c2d0f699e4493ea69bbdb0 (patch) | |
tree | b46c93917a4eebce5d0bef3c157fe4f94f6b6f6c /src/Text/Pandoc | |
parent | 6c5952e746c8d6cbd9bb921b444b6314daacd9ac (diff) | |
download | pandoc-b3bb9a4384b84500c7c2d0f699e4493ea69bbdb0.tar.gz |
Avoid some warnings when compiled wo/ embed_data_files flag.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Class.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs index ff86429b5..fa881a745 100644 --- a/src/Text/Pandoc/Class.hs +++ b/src/Text/Pandoc/Class.hs @@ -105,7 +105,6 @@ import Data.Time.Clock.POSIX ( utcTimeToPOSIXSeconds , posixSecondsToUTCTime , POSIXTime ) import Data.Time.LocalTime (TimeZone, ZonedTime, utcToZonedTime, utc) -import qualified System.FilePath.Posix as Posix import Network.URI ( escapeURIString, nonStrictRelativeTo, unEscapeString, parseURIReference, isAllowedInURI, parseURI, URI(..) ) @@ -119,7 +118,7 @@ import qualified System.Environment as IO (lookupEnv) import System.FilePath.Glob (match, compile) import System.Directory (createDirectoryIfMissing, getDirectoryContents, doesDirectoryExist) -import System.FilePath ((</>), (<.>), takeDirectory, splitDirectories, +import System.FilePath ((</>), (<.>), takeDirectory, takeExtension, dropExtension, isRelative, normalise) import qualified System.FilePath.Glob as IO (glob) import qualified System.Directory as IO (getModificationTime) @@ -141,6 +140,8 @@ import Text.Pandoc.Translations (Term(..), Translations(..), readTranslations) import qualified Debug.Trace #ifdef EMBED_DATA_FILES import Text.Pandoc.Data (dataFiles) +import qualified System.FilePath.Posix as Posix +import System.Directory (splitDirectories) #else import qualified Paths_pandoc as Paths #endif |