aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-17 21:21:52 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-17 21:21:52 -0700
commit34d53aff6e0237c4934024a413a5b722666cc487 (patch)
tree37125430712aaecb12f557c3a05947de4219ca7f /src/Text/Pandoc
parente08399a16b9604c1c7eb92ca9cfc8213d73892eb (diff)
downloadpandoc-34d53aff6e0237c4934024a413a5b722666cc487.tar.gz
Remove compiler warning with embed_data_files.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Shared.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 58e065845..a40b1d4e9 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -854,7 +854,6 @@ readDefaultDataFile fname =
#else
getDataFileName fname' >>= checkExistence >>= BS.readFile
where fname' = if fname == "README" then fname else "data" </> fname
-#endif
checkExistence :: FilePath -> IO FilePath
checkExistence fn = do
@@ -862,6 +861,7 @@ checkExistence fn = do
if exists
then return fn
else err 97 ("Could not find data file " ++ fn)
+#endif
-- | Read file from specified user data directory or, if not found there, from
-- Cabal data directory.