summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Run.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-12-30 17:47:31 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-12-30 17:47:31 +0100
commitda12825066d16884bae2f884029102919dd9a558 (patch)
tree80881468fed1f6ec5ea4ba4fe3b6fe6e083ae7cb /src/Hakyll/Core/Run.hs
parent227b186bf2420d027b97f4e1392b206a80a04214 (diff)
downloadhakyll-da12825066d16884bae2f884029102919dd9a558.tar.gz
Compiler → {Compiler, Compiler.Internal}
Diffstat (limited to 'src/Hakyll/Core/Run.hs')
-rw-r--r--src/Hakyll/Core/Run.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Run.hs b/src/Hakyll/Core/Run.hs
index 911e2f9..fa88458 100644
--- a/src/Hakyll/Core/Run.hs
+++ b/src/Hakyll/Core/Run.hs
@@ -14,6 +14,7 @@ import Hakyll.Core.Route
import Hakyll.Core.Identifier
import Hakyll.Core.Util.File
import Hakyll.Core.Compiler
+import Hakyll.Core.Compiler.Internal
import Hakyll.Core.ResourceProvider
import Hakyll.Core.ResourceProvider.FileResourceProvider
import Hakyll.Core.Rules
@@ -40,7 +41,7 @@ hakyllWith rules provider store = do
-- Get all dependencies
dependencies = flip map compilers $ \(id', compiler) ->
- let deps = getDependencies compiler provider
+ let deps = runCompilerDependencies compiler provider
in (id', deps)
-- Create a compiler map
@@ -65,7 +66,7 @@ hakyllWith rules provider store = do
putStrLn "DONE."
where
addTarget route' map' (id', comp) = do
- compiled <- runCompiler comp id' provider (dependencyLookup map')
+ compiled <- runCompilerJob comp id' provider (dependencyLookup map')
putStrLn $ "Generated target: " ++ show id'
case runRoute route' id' of