From ca17e43628e1196701c65993480dffa650cb0916 Mon Sep 17 00:00:00 2001 From: Mekeor Melire Date: Mon, 13 Aug 2012 01:23:04 +0200 Subject: 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). --- src/Hakyll/Core/Configuration.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Hakyll') diff --git a/src/Hakyll/Core/Configuration.hs b/src/Hakyll/Core/Configuration.hs index 3e3c44a..5c60ac5 100644 --- a/src/Hakyll/Core/Configuration.hs +++ b/src/Hakyll/Core/Configuration.hs @@ -20,6 +20,8 @@ data HakyllConfiguration = HakyllConfiguration -- -- * files starting with a @.@ -- + -- * files starting with a @#@ + -- -- * files ending with a @~@ -- -- * files ending with @.swp@ @@ -57,8 +59,9 @@ defaultHakyllConfiguration = HakyllConfiguration } where ignoreFile' path - | "." `isPrefixOf` fileName = True - | "~" `isSuffixOf` fileName = True + | "." `isPrefixOf` fileName = True + | "#" `isPrefixOf` fileName = True + | "~" `isSuffixOf` fileName = True | ".swp" `isSuffixOf` fileName = True | otherwise = False where -- cgit v1.2.3