hyena-0.1.0.1: Simple web application server

Portabilityportable
Stabilityexperimental
Maintainerjohan.tibell@gmail.com

Hyena.Config

Description

This module specifies the server configuration.

Synopsis

Documentation

data Config Source

The server configuration.

Constructors

Config 

Fields

address :: String

Address (hostname or IP) to bind to when listening for connections.

daemonize :: Bool

Run in the background.

debug :: Bool

Print lots of debug information.

logHandle :: Handle

Where to dump log messages in daemon mode.

port :: Int

Port to bind to when listening for connections.

Instances

configFromFlags :: IO ConfigSource

Reads the server options from the command line. Settings from defaultConfig is used for unspecified options. Creates missing directories as needed for the log file referred to by the --log flag when in daemonized mode.

defaultConfig :: IO ConfigSource

A set of default options most users should use. Creates missing directories as needed for the default log file when in daemonized mode.