Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Yesod.Session.Persist.Yesod
Contents
Synopsis
- makeSessionBackend :: forall persistentBackend persistentRecord. SessionConfiguration persistentBackend persistentRecord -> IO SessionBackend
- data SessionConfiguration persistentBackend persistentRecord = SessionConfiguration {
- persistence :: SessionPersistence persistentBackend persistentRecord IO
- options :: Options (ReaderT persistentBackend IO) IO
Concretely
makeSessionBackend :: forall persistentBackend persistentRecord. SessionConfiguration persistentBackend persistentRecord -> IO SessionBackend Source #
Use this to implement makeSessionBackend
.
The session
type parameter represents the Persistent entity
you're using to store sessions
(see the SessionPersistence
field of the configuration).
data SessionConfiguration persistentBackend persistentRecord Source #
Constructors
SessionConfiguration | |
Fields
|