From 34d53aff6e0237c4934024a413a5b722666cc487 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 17 Oct 2015 21:21:52 -0700 Subject: Remove compiler warning with embed_data_files. --- src/Text/Pandoc/Shared.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') 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. -- cgit v1.2.3