summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-19 16:34:41 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-19 16:34:41 +0100
commit68facf83ec0c223b9c033cc632041d45732ab0e7 (patch)
tree8a04a6a5ae5f7fd52537c062deecfaf7d6aaa59d /src/Text/Hakyll.hs
parentfe77089955dbf1002496e34824da13bfaf64a898 (diff)
downloadhakyll-68facf83ec0c223b9c033cc632041d45732ab0e7.tar.gz
Removed page caching.
I am removing page caching for the following reasons (in no particular order): - It is very error-prone because the pandoc output might interfere with the Hakyll page layout (and thus would pages be read incorrectly). - Timestamping is a much better method to save compilation time. - It would also mess up Unicode sometimes. - Hakyll is aimed at small to medium sites. This caching would not bring a huge speedup anyway. Note: there still is timestamp checking!
Diffstat (limited to 'src/Text/Hakyll.hs')
-rw-r--r--src/Text/Hakyll.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Hakyll.hs b/src/Text/Hakyll.hs
index 295f32e..5c2fbd5 100644
--- a/src/Text/Hakyll.hs
+++ b/src/Text/Hakyll.hs
@@ -39,8 +39,7 @@ build configuration buildFunction = do putStrLn "Generating..."
-- | Clean up directories.
clean :: IO ()
-clean = do remove' "_cache"
- remove' "_site"
+clean = remove' "_site"
where
remove' dir = do putStrLn $ "Removing " ++ dir ++ "..."
exists <- doesDirectoryExist dir