wai-routes-0.4.1: Typesafe URLs for Wai applications.

Portabilitynon-portable (uses ghc extensions)
Stabilityexperimental
Maintainerajnsit@gmail.com
Safe HaskellNone

Network.Wai.Middleware.Routes.Handler

Description

Provides a HandlerM Monad that makes it easy to build Handlers

Synopsis

Documentation

type HandlerM master a = HandlerMI master IO aSource

The HandlerM Monad

A Monad that makes it easier to build a Handler

runHandlerM :: HandlerM master Response -> Handler masterSource

Run HandlerM, resulting in a Handler

Run a HandlerM to get a Handler

request :: HandlerM master RequestSource

Get the request

Access the request data

master :: HandlerM master masterSource

Get the master

Access the master datatype

next :: HandlerM master ResponseSource

Run the next application

Run the next application in the stack