summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Run.hs
diff options
context:
space:
mode:
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 2b0ff5d..b59fdac 100644
--- a/src/Hakyll/Core/Run.hs
+++ b/src/Hakyll/Core/Run.hs
@@ -32,9 +32,9 @@ import Hakyll.Core.Writable
import Hakyll.Core.Store
import Hakyll.Core.Configuration
--- | Run all rules needed
+-- | Run all rules needed, return the rule set used
--
-run :: HakyllConfiguration -> Rules -> IO ()
+run :: HakyllConfiguration -> Rules -> IO RuleSet
run configuration rules = do
store <- makeStore $ storeDirectory configuration
provider <- fileResourceProvider
@@ -46,6 +46,7 @@ run configuration rules = do
state' = runReaderT reader $ env ruleSet provider store
evalStateT state' state
+ return ruleSet
where
env ruleSet provider store = RuntimeEnvironment
{ hakyllConfiguration = configuration