JackRose-0.8: Spaced repetition web server

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

CardItemGet

Description

 

Synopsis

Documentation

type PresentationParams = Either Text (Key LearnDatum, Document) Source #

Parameters of item about to be displayed, or an explanation of why it's not available.

rememberItem :: PresentationParams -> Handler Html Source #

Put the necessary data into the session so that the POST knows what to add or update. We include the current time to cater for browser back-buttoning; the timestamp is saved with the repetition data and any later-stamped data for that item are deleted. TODO a Left indicates inconsistency in the data, so really we should log every one out and fix it.