Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data StatelessConf Source #
Instances
PersistentBackend StatelessConf Source # | |
Defined in IntelliMonad.Persist type Conn StatelessConf Source # config :: StatelessConf Source # setup :: (MonadIO m, MonadFail m) => StatelessConf -> m (Maybe (Conn StatelessConf)) Source # initialize :: (MonadIO m, MonadFail m) => Conn StatelessConf -> Context -> m () Source # load :: (MonadIO m, MonadFail m) => Conn StatelessConf -> SessionName -> m (Maybe Context) Source # loadByKey :: (MonadIO m, MonadFail m) => Conn StatelessConf -> Key Context -> m (Maybe Context) Source # save :: (MonadIO m, MonadFail m) => Conn StatelessConf -> Context -> m (Maybe (Key Context)) Source # saveContents :: (MonadIO m, MonadFail m) => Conn StatelessConf -> [Content] -> m () Source # listSessions :: (MonadIO m, MonadFail m) => Conn StatelessConf -> m [Text] Source # deleteSession :: (MonadIO m, MonadFail m) => Conn StatelessConf -> SessionName -> m () Source # | |
type Conn StatelessConf Source # | |
Defined in IntelliMonad.Persist |
class PersistentBackend p where Source #
setup :: (MonadIO m, MonadFail m) => p -> m (Maybe (Conn p)) Source #
initialize :: (MonadIO m, MonadFail m) => Conn p -> Context -> m () Source #
load :: (MonadIO m, MonadFail m) => Conn p -> SessionName -> m (Maybe Context) Source #
loadByKey :: (MonadIO m, MonadFail m) => Conn p -> Key Context -> m (Maybe Context) Source #
save :: (MonadIO m, MonadFail m) => Conn p -> Context -> m (Maybe (Key Context)) Source #
saveContents :: (MonadIO m, MonadFail m) => Conn p -> [Content] -> m () Source #
listSessions :: (MonadIO m, MonadFail m) => Conn p -> m [Text] Source #
deleteSession :: (MonadIO m, MonadFail m) => Conn p -> SessionName -> m () Source #