diff options
| author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-02-09 15:11:40 +0100 |
|---|---|---|
| committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-02-09 15:11:40 +0100 |
| commit | 86d0b68aed6e82fd4a6c935ce6113937023f6e6b (patch) | |
| tree | 203e81bde47a7eed1c8cf7d9bf854a08e5329c8d /src/Hakyll/Web | |
| parent | ea953d3415232ba53aadc061e9005dbe74e3b012 (diff) | |
| download | hakyll-86d0b68aed6e82fd4a6c935ce6113937023f6e6b.tar.gz | |
Start provider rewrite
Diffstat (limited to 'src/Hakyll/Web')
| -rw-r--r-- | src/Hakyll/Web/Template/Context.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Hakyll/Web/Template/Context.hs b/src/Hakyll/Web/Template/Context.hs index fcb527a..8aab989 100644 --- a/src/Hakyll/Web/Template/Context.hs +++ b/src/Hakyll/Web/Template/Context.hs @@ -207,8 +207,7 @@ modificationTimeFieldWith :: TimeLocale -- ^ Time output locale -> Context a -- ^ Resulting context modificationTimeFieldWith locale key fmt = field key $ \i -> do provider <- compilerProvider <$> compilerAsk - mtime <- compilerUnsafeIO $ - resourceModificationTime provider $ itemIdentifier i + let mtime = resourceModificationTime provider $ itemIdentifier i return $ formatTime locale fmt mtime |
