hakyll-2.1.1: A simple static site generator library.

Network.Hakyll.SimpleServer

Description

Module containing a small, simple http file server for testing and preview purposes.

Synopsis

Documentation

simpleServerSource

Arguments

:: PortNumber

Port to listen on.

-> FilePath

Root directory to serve.

-> IO ()

Optional pre-respond action.

-> IO () 

Start a simple http server on the given PortNumber, serving the given directory.