Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- optionParser :: Configuration -> Parser Options
- commandParser :: Configuration -> Parser Command
- defaultCommands :: Configuration -> [(String, Parser Command, InfoMod a)]
- defaultParser :: Configuration -> IO Options
- defaultParserPure :: Configuration -> [String] -> ParserResult Options
- defaultParserPrefs :: ParserPrefs
- defaultParserInfo :: Configuration -> ParserInfo Options
Entry points
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 #
Command line argument parsers
The parsed command-line options.
Options | |
|
The command to run.
Build RunMode | Generate the site. |
Check | Validate the site output. |
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. |
defaultCommands :: Configuration -> [(String, Parser Command, InfoMod a)] Source #
defaultParser :: Configuration -> IO Options Source #
defaultParserPure :: Configuration -> [String] -> ParserResult Options Source #