on master help sign in
if a filename begins with a hash (#), hakyll should ignore it, too,

because emacs names its backup files like #this# (while you're still editing).

commitca17e43628e1196701c65993480dffa650cb0916 authorMekeor Melire <mekeor@ymail.com> dateMon 13 Aug 2012, 01:23 (14 years ago) parent0f484c4
1 file changed+5−2
src/Hakyll/Core/Configuration.hs+5−2
src/Hakyll/Core/Configuration.hs+5−2
@@ -20,6 +20,8 @@ data HakyllConfiguration = HakyllConfiguration
2020 --
2121 -- * files starting with a @.@
2222 --
23+ -- * files starting with a @#@
24+ --
2325 -- * files ending with a @~@
2426 --
2527 -- * files ending with @.swp@
@@ -57,8 +59,9 @@ defaultHakyllConfiguration = HakyllConfiguration
5759 }
5860 where
5961 ignoreFile' path
60− | "." `isPrefixOf` fileName = True
61− | "~" `isSuffixOf` fileName = True
62+ | "." `isPrefixOf` fileName = True
63+ | "#" `isPrefixOf` fileName = True
64+ | "~" `isSuffixOf` fileName = True
6265 | ".swp" `isSuffixOf` fileName = True
6366 | otherwise = False
6467 where