diff options
author | Mekeor Melire <mekeor@ymail.com> | 2012-08-13 01:23:04 +0200 |
---|---|---|
committer | Mekeor Melire <mekeor@ymail.com> | 2012-08-13 01:23:04 +0200 |
commit | ca17e43628e1196701c65993480dffa650cb0916 (patch) | |
tree | 849ed799669f5501c95c1548463c070c4a3963a8 /src/Hakyll/Core | |
parent | 0f484c49be07f0729d89d562f02a40109872737a (diff) | |
download | hakyll-ca17e43628e1196701c65993480dffa650cb0916.tar.gz |
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).
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r-- | src/Hakyll/Core/Configuration.hs | 7 |
1 files changed, 5 insertions, 2 deletions
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 |