hakyll-2.0: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.HakyllAction
Description
This is the module which exports HakyllAction.
Synopsis
data HakyllAction a b = HakyllAction {
actionDependencies :: [FilePath]
actionUrl :: Maybe (Hakyll FilePath)
actionFunction :: a -> Hakyll b
}
createHakyllAction :: (a -> Hakyll b) -> HakyllAction a b
createSimpleHakyllAction :: Hakyll b -> HakyllAction () b
createFileHakyllAction :: FilePath -> Hakyll b -> HakyllAction () b
chain :: [HakyllAction a a] -> HakyllAction a a
runHakyllAction :: HakyllAction () a -> Hakyll a
runHakyllActionIfNeeded :: HakyllAction () () -> Hakyll ()
Documentation
data HakyllAction a b Source
Type used for rendering computations that carry along dependencies.
Constructors
HakyllAction
actionDependencies :: [FilePath]Dependencies of the HakyllAction.
actionUrl :: Maybe (Hakyll FilePath)URL pointing to the result of this HakyllAction.
actionFunction :: a -> Hakyll bThe actual render function.
show/hide Instances
createHakyllActionSource
:: (a -> Hakyll b)Function to execute.
-> HakyllAction a b
Create a HakyllAction from a function.
createSimpleHakyllActionSource
:: Hakyll bHakyll value to pass on.
-> HakyllAction () b
Create a HakyllAction from a simple Hakyll value.
createFileHakyllActionSource
:: FilePathFile to operate on.
-> Hakyll bValue to pass on.
-> HakyllAction () bThe resulting action.
Create a HakyllAction that operates on one file.
chainSource
:: [HakyllAction a a]Actions to chain.
-> HakyllAction a aResulting action.
Chain a number of HakyllAction computations.
runHakyllActionSource
:: HakyllAction () aRender action to run.
-> Hakyll aResult of the action.
Run a HakyllAction now.
runHakyllActionIfNeededSource
:: HakyllAction () ()Action to run.
-> Hakyll ()Empty result.
Run a HakyllAction, but only when it is out-of-date. At this point, the actionUrl field must be set.
Produced by Haddock version 2.7.2