hakyll/src/Hakyll/Main.hs

22 lines
533 B
Haskell
Raw Normal View History

2011-02-03 10:34:00 +00:00
-- | Module providing the main hakyll function and command-line argument parsing
--
module Hakyll.Main
( hakyll
, hakyllWith
) where
import Hakyll.Core.Configuration
import Hakyll.Core.Run
import Hakyll.Core.Rules
-- | This usualy is the function with which the user runs the hakyll compiler
--
hakyll :: Rules -> IO ()
hakyll = run defaultHakyllConfiguration
-- | A variant of 'hakyll' which allows the user to specify a custom
-- configuration
--
hakyllWith :: HakyllConfiguration -> Rules -> IO ()
hakyllWith = run