summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Compiler/Internal.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-03 16:07:49 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-03 16:07:49 +0100
commitc093761e8941c1605b6131c411ca995588c10c2e (patch)
tree98cb64483d9ac1223135e3c954d3f172efc9c0d3 /src/Hakyll/Core/Compiler/Internal.hs
parent5705bb8f88529b4170ffe884c668721abe9fccea (diff)
downloadhakyll-c093761e8941c1605b6131c411ca995588c10c2e.tar.gz
Route → Routes
Diffstat (limited to 'src/Hakyll/Core/Compiler/Internal.hs')
-rw-r--r--src/Hakyll/Core/Compiler/Internal.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Hakyll/Core/Compiler/Internal.hs b/src/Hakyll/Core/Compiler/Internal.hs
index f1d591d..ccdd557 100644
--- a/src/Hakyll/Core/Compiler/Internal.hs
+++ b/src/Hakyll/Core/Compiler/Internal.hs
@@ -25,6 +25,7 @@ import Control.Arrow (Arrow, arr, first)
import Hakyll.Core.Identifier
import Hakyll.Core.ResourceProvider
import Hakyll.Core.Store
+import Hakyll.Core.Routes
-- | A set of dependencies
--
@@ -37,8 +38,8 @@ data CompilerEnvironment = CompilerEnvironment
compilerIdentifier :: Identifier
, -- | Resource provider
compilerResourceProvider :: ResourceProvider
- , -- | Site route
- compilerRoute :: Maybe FilePath
+ , -- | Site routes
+ compilerRoutes :: Routes
, -- | Compiler store
compilerStore :: Store
, -- | Flag indicating if the underlying resource was modified
@@ -82,7 +83,7 @@ instance Arrow Compiler where
runCompilerJob :: Compiler () a -- ^ Compiler to run
-> Identifier -- ^ Target identifier
-> ResourceProvider -- ^ Resource provider
- -> Maybe FilePath -- ^ Route
+ -> Routes -- ^ Route
-> Store -- ^ Store
-> Bool -- ^ Was the resource modified?
-> IO a
@@ -92,7 +93,7 @@ runCompilerJob compiler identifier provider route store modified =
env = CompilerEnvironment
{ compilerIdentifier = identifier
, compilerResourceProvider = provider
- , compilerRoute = route
+ , compilerRoutes = route
, compilerStore = store
, compilerResourceModified = modified
}