Remove compiler warning with embed_data_files.

This commit is contained in:
John MacFarlane 2015-10-17 21:21:52 -07:00
parent e08399a16b
commit 34d53aff6e

View file

@ -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.