Safe Haskell | None |
---|---|
Language | Haskell2010 |
- serveFAction :: forall api m s e v. (HasServer api `[]`, Enter (ServerT api m) (m :~> ExceptT ServantErr IO) (Server api), MonadRandom m, MonadError500 e m, MonadHasSessionCsrfToken s m, MonadViewCsrfSecret v m, MonadUseThentosSessionToken s m) => Proxy api -> Proxy s -> SetCookie -> ExtendClearanceOnSessionToken m -> (IO :~> m) -> (m :~> ExceptT ServantErr IO) -> ServerT api m -> IO Application
- enterFAction :: (MonadRandom m, MonadError500 e m, MonadHasSessionCsrfToken s m, MonadViewCsrfSecret v m, MonadUseThentosSessionToken s m) => FSessionKey s -> FSessionMap s -> ExtendClearanceOnSessionToken m -> (IO :~> m) -> (m :~> ExceptT ServantErr IO) -> m :~> ExceptT ServantErr IO
- data SSession m k v
- type FSession fsd = Session IO () fsd
- type FSessionMap fsd = Key (FSession fsd) -> Maybe (FSession fsd)
- type FSessionStore fsd = SessionStore IO () fsd
- type FServantSession fsd = SSession IO () fsd
- type FSessionKey fsd = Key (FSession fsd)
Documentation
serveFAction :: forall api m s e v. (HasServer api `[]`, Enter (ServerT api m) (m :~> ExceptT ServantErr IO) (Server api), MonadRandom m, MonadError500 e m, MonadHasSessionCsrfToken s m, MonadViewCsrfSecret v m, MonadUseThentosSessionToken s m) => Proxy api -> Proxy s -> SetCookie -> ExtendClearanceOnSessionToken m -> (IO :~> m) -> (m :~> ExceptT ServantErr IO) -> ServerT api m -> IO Application Source
enterFAction :: (MonadRandom m, MonadError500 e m, MonadHasSessionCsrfToken s m, MonadViewCsrfSecret v m, MonadUseThentosSessionToken s m) => FSessionKey s -> FSessionMap s -> ExtendClearanceOnSessionToken m -> (IO :~> m) -> (m :~> ExceptT ServantErr IO) -> m :~> ExceptT ServantErr IO Source
types
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.
type FSessionMap fsd = Key (FSession fsd) -> Maybe (FSession fsd) Source
type FSessionStore fsd = SessionStore IO () fsd Source
type FServantSession fsd = SSession IO () fsd Source
type FSessionKey fsd = Key (FSession fsd) Source