@@ -22,13 +22,13 @@ import Hakyll.Web.Preview.Server
23-- | This usualy is the function with which the user runs the hakyll compiler
23-- | This usualy is the function with which the user runs the hakyll compiler
25−hakyll :: Rules -> IO ()
25+hakyll :: RulesM a -> IO ()
26hakyll = hakyllWith defaultHakyllConfiguration
26hakyll = hakyllWith defaultHakyllConfiguration
28-- | A variant of 'hakyll' which allows the user to specify a custom
28-- | A variant of 'hakyll' which allows the user to specify a custom
29-- configuration
29-- configuration
31−hakyllWith :: HakyllConfiguration -> Rules -> IO ()
31+hakyllWith :: HakyllConfiguration -> RulesM a -> IO ()
32hakyllWith conf rules = do
32hakyllWith conf rules = do
33 args <- getArgs
33 args <- getArgs
34 case args of
34 case args of
@@ -44,7 +44,7 @@ hakyllWith conf rules = do
45-- | Build the site
45-- | Build the site
47−build :: HakyllConfiguration -> Rules -> IO ()
47+build :: HakyllConfiguration -> RulesM a -> IO ()
48build conf rules = do
48build conf rules = do
49 _ <- run conf rules
49 _ <- run conf rules
@@ -84,7 +84,7 @@ help = do
85-- | Preview the site
85-- | Preview the site
87−preview :: HakyllConfiguration -> Rules -> Int -> IO ()
87+preview :: HakyllConfiguration -> RulesM a -> Int -> IO ()
88preview conf rules port = do
88preview conf rules port = do
89 -- Fork a thread polling for changes
89 -- Fork a thread polling for changes
90 _ <- forkIO $ previewPoll conf update
90 _ <- forkIO $ previewPoll conf update
@@ -96,7 +96,7 @@ preview conf rules port = do
97-- | Rebuild the site
97-- | Rebuild the site
99−rebuild :: HakyllConfiguration -> Rules -> IO ()
99+rebuild :: HakyllConfiguration -> RulesM a -> IO ()
100rebuild conf rules = do
100rebuild conf rules = do
101 clean conf
101 clean conf
102 build conf rules
102 build conf rules