| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hakyll.Main
Description
Module providing the main hakyll function and command-line argument parsing
Synopsis
- hakyll :: Rules a -> IO ()
- hakyllWith :: Configuration -> Rules a -> IO ()
- hakyllWithArgs :: Configuration -> Options -> Rules a -> IO ()
- hakyllWithExitCode :: Configuration -> Rules a -> IO ExitCode
- hakyllWithExitCodeAndArgs :: Configuration -> Options -> Rules a -> IO ExitCode
- data Options = Options {
- verbosity :: Bool
- optCommand :: Command
- data Command
Documentation
hakyll :: Rules a -> IO () Source #
This usually is the function with which the user runs the hakyll compiler
hakyllWith :: Configuration -> Rules a -> IO () Source #
A variant of hakyll which allows the user to specify a custom
configuration
hakyllWithArgs :: Configuration -> Options -> Rules a -> IO () Source #
hakyllWithExitCode :: Configuration -> Rules a -> IO ExitCode Source #
hakyllWithExitCodeAndArgs :: Configuration -> Options -> Rules a -> IO ExitCode Source #
The parsed command-line options.
Constructors
| Options | |
Fields
| |
The command to run.
Constructors
| Build | Generate the site. |
| Check | Validate the site output. |
Fields | |
| Clean | Clean up and remove cache. |
| Deploy | Upload/deploy your site. |
| Preview | Deprecated: Use Watch instead.
|
| Rebuild | Clean and build again. |
| Server | Start a preview server. |
| Watch | Autocompile on changes and start a preview server. |