JackRose-0.8: Spaced repetition web server

Copyright(c) Michael Mounteney, 2016
LicenseBSD 3 clause
Maintainerthe project name, all lower case, at landcroft dot com
Stabilityexperimental
Portabilityundefined
Safe HaskellNone
LanguageHaskell2010

SessionItemData

Description

We keep this is one place to ensure that what is retrieved is consistent with what is set, and is returned as the intended type.

Synopsis

Documentation

set :: MonadHandler m => Key LearnDatum -> UTCTime -> m () Source #

Put the item data into the session

get :: MonadHandler m => m (Maybe Bundle) Source #

Get the item data. The data are then removed from the session; they can only be gotten once. If they will be needed later, they must be re-added.

data Bundle Source #

Bundle -- the data preserved in the client-side session.

Constructors

Bundle (Key LearnDatum) UTCTime