This is the module which exports HakyllAction
.
- data HakyllAction a b = HakyllAction {}
- 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.
:: (a -> Hakyll b) | Function to execute. |
-> HakyllAction a b |
Create a HakyllAction
from a function.
createSimpleHakyllActionSource
:: Hakyll b | Hakyll value to pass on. |
-> HakyllAction () b |
Create a HakyllAction
from a simple Hakyll
value.
:: FilePath | File to operate on. |
-> Hakyll b | Value to pass on. |
-> HakyllAction () b | The resulting action. |
Create a HakyllAction
that operates on one file.
:: [HakyllAction a a] | Actions to chain. |
-> HakyllAction a a | Resulting action. |
Chain a number of HakyllAction
computations.
:: HakyllAction () a | Render action to run. |
-> Hakyll a | Result of the action. |
Run a HakyllAction
now.
:: 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.