Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type WaiExpectation st = WaiSession st ()
- newtype WaiSession st a = WaiSession {
- unWaiSession :: ReaderT st Session a
- runWaiSession :: WaiSession () a -> Application -> IO a
- runWithState :: WaiSession st a -> (st, Application) -> IO a
- withApplication :: Application -> WaiSession () a -> IO a
- getApp :: WaiSession st Application
- getState :: WaiSession st st
- formatHeader :: Header -> String
Documentation
type WaiExpectation st = WaiSession st () Source #
An expectation in the WaiSession
monad. Failing expectations are
communicated through exceptions (similar to Expectation
and
Assertion
).
newtype WaiSession st a Source #
A WAI test
session that carries the Application
under test and some client state.
WaiSession | |
|
Instances
runWaiSession :: WaiSession () a -> Application -> IO a Source #
runWithState :: WaiSession st a -> (st, Application) -> IO a Source #
withApplication :: Application -> WaiSession () a -> IO a Source #
getApp :: WaiSession st Application Source #
getState :: WaiSession st st Source #
formatHeader :: Header -> String Source #