servant-session-0.5: A wai middleware and servant combinator for maintaining session state.

Safe HaskellNone
LanguageHaskell2010

Servant.Session

Synopsis

Documentation

data SSession m k v

SSession m k v represents a session storage with keys of type k, values of type v, and operating under the monad m. The underlying implementation uses the 'wai-session' package, and any backend compatible with that package should work here too.

Instances

HasServer k sublayout => HasServer * ((:>) * k (SSession n k v) sublayout)

HasServer instance for SSession.

type ServerT * ((:>) * k (SSession n k1 v) sublayout) m = (Key (Session n k1 v) -> Maybe (Session n k1 v)) -> ServerT k sublayout m