Module describing the Hakyll monad stack.
- data HakyllConfiguration = HakyllConfiguration {}
- data PreviewMode
- type Hakyll = ReaderT HakyllConfiguration IO
- askHakyll :: (HakyllConfiguration -> a) -> Hakyll a
- getAdditionalContext :: HakyllConfiguration -> Context
- logHakyll :: String -> Hakyll ()
- forkHakyllWait :: Hakyll () -> Hakyll (MVar ())
- concurrentHakyll :: [Hakyll ()] -> Hakyll ()
Documentation
data HakyllConfiguration Source
Hakyll global configuration type.
HakyllConfiguration | |
|
data PreviewMode Source
Preview mode.
type Hakyll = ReaderT HakyllConfiguration IOSource
Our custom monad stack.
askHakyll :: (HakyllConfiguration -> a) -> Hakyll aSource
Simplified ask
function for the Hakyll monad stack.
Usage would typically be something like:
doSomething :: a -> b -> Hakyll c doSomething arg1 arg2 = do siteDirectory' <- askHakyll siteDirectory ...
getAdditionalContext :: HakyllConfiguration -> ContextSource
Obtain the globally available, additional context.