on master help sign in
Some more documentation.
9576700Jasper Van der Jeugt
src/Text/Hakyll/Hakyll.hs+8
@@ -29,5 +29,13 @@ data HakyllConfiguration = HakyllConfiguration
29type Hakyll = ReaderT HakyllConfiguration IO
29type Hakyll = ReaderT HakyllConfiguration IO
30
30
31-- | Simplified @ask@ function for the Hakyll monad stack.
31-- | Simplified @ask@ function for the Hakyll monad stack.
32+--
33+-- Usage would typically be something like:
34+--
35+-- > doSomething :: a -> b -> Hakyll c
36+-- > doSomething arg1 arg2 = do
37+-- > siteDirectory' <- askHakyll siteDirectory
38+-- > ...
39+--
32askHakyll :: (HakyllConfiguration -> a) -> Hakyll a
40askHakyll :: (HakyllConfiguration -> a) -> Hakyll a
33askHakyll = flip liftM ask
41askHakyll = flip liftM ask