kawaii-0.0.1.0: Utilities for serving static sites and blogs with Wai/Warp

Copyright(c) Eduardo Trujillo, 2016
LicenseApache
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Hakyll.Serve.Main

Contents

Description

The Main module contains a wrapper function that can be used as your program's main function. It encapsulates both the Hakyll commands and the server functionality into a single application.

Since this module mainly provides some glue for putting this two applications together, the actual documentation for the server part is available on Serve.

Synopsis

Main wrappers

hakyllServe :: Rules a -> IO () Source #

The serve cousin of hakyll. It provides a wrapper of the usual Hakyll commands and a command for serving the built site.

hakyllServeWith :: HakyllServeConfiguration -> Rules a -> IO () Source #

The serve cousin of Hakyll.hakyllWith. It provides a wrapper of the usual Hakyll commands and a command for serving the built site.

Configuration

data HakyllServeConfiguration Source #

The configuration for the server process.

The different transforms can be used to specify how the configuration changes depending on the stage. While starting up, the server process will take the base configuration, check the stage and pass the configuration through the appropriate transformer.

Lenses