webwire-0.1.0: Functional reactive web framework

MaintainerErtugrul Soeylemez <es@ertes.de>

WebWire.Core

Contents

Description

Core functionality.

Synopsis

Running webwire applications

webWireSource

Arguments

:: forall a site .  
=> (Application -> IO a)

WAI handler to use.

-> site

Site configuration.

-> WebWire site () Response

Webwire application to run.

-> IO a

Result of the WAI handler.

Run a webwire application using the given WAI handler.

Simple webwires

simpleWire :: (Application -> IO a) -> SimpleWire () Response -> IO aSource

Run a simple webwire. This wire type is for simple sites (usually just test sites or temporary sites), which don't need a custom WebSite instance.

Tools

simpleError :: WebWire site Status ResponseSource

Present a very simple plaintext error page for the given status.