summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-19 14:59:55 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-19 14:59:55 +0100
commit88ffd3c5bea6b5e5cb1004173130b5691a7591f6 (patch)
tree8205d11882dc3a78f6ea03fe0adef390bc023670 /src/Hakyll/Web
parent6b5c299ec945cdfea2dbf2df0922f8753588b729 (diff)
downloadhakyll-88ffd3c5bea6b5e5cb1004173130b5691a7591f6.tar.gz
Add tests again
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/Template/Context.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Template/Context.hs b/src/Hakyll/Web/Template/Context.hs
index fd9add9..eeec728 100644
--- a/src/Hakyll/Web/Template/Context.hs
+++ b/src/Hakyll/Web/Template/Context.hs
@@ -195,7 +195,9 @@ modificationTimeFieldWith :: TimeLocale -- ^ Time output locale
-> String -- ^ Format
-> Context a -- ^ Resulting context
modificationTimeFieldWith locale key fmt = field key $ \i -> do
- mtime <- compilerUnsafeIO $ resourceModificationTime $ itemIdentifier i
+ provider <- compilerProvider <$> compilerAsk
+ mtime <- compilerUnsafeIO $
+ resourceModificationTime provider $ itemIdentifier i
return $ formatTime locale fmt mtime