git.iko.soy/typeable/pandoc
on master help sign in
Remove compiler warning with embed_data_files.
34d53afJohn MacFarlane
src/Text/Pandoc/Shared.hs+1−1
@@ -854,7 +854,6 @@ readDefaultDataFile fname =
854#else
854#else
855 getDataFileName fname' >>= checkExistence >>= BS.readFile
855 getDataFileName fname' >>= checkExistence >>= BS.readFile
856 where fname' = if fname == "README" then fname else "data" </> fname
856 where fname' = if fname == "README" then fname else "data" </> fname
857−#endif
858
857
859checkExistence :: FilePath -> IO FilePath
858checkExistence :: FilePath -> IO FilePath
860checkExistence fn = do
859checkExistence fn = do
@@ -862,6 +861,7 @@ checkExistence fn = do
862 if exists
861 if exists
863 then return fn
862 then return fn
864 else err 97 ("Could not find data file " ++ fn)
863 else err 97 ("Could not find data file " ++ fn)
864+#endif
865
865
866-- | Read file from specified user data directory or, if not found there, from
866-- | Read file from specified user data directory or, if not found there, from
867-- Cabal data directory.
867-- Cabal data directory.