wai-routes-0.3.3: 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

data HandlerM master a Source

The HandlerM Monad

Instances

Monad (HandlerM master) 
Functor (HandlerM master) 
MonadIO (HandlerM master) 

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