Copyright | (c) Michael Mounteney, 2017 |
---|---|
License | BSD 3 clause |
Maintainer | the project name, all lower case, at landcroft dot com |
Stability | experimental |
Portability | undefined |
Safe Haskell | None |
Language | Haskell2010 |
- type PresentationParams = Either Text (Key LearnDatum, Document)
- rememberItem :: PresentationParams -> Handler Html
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.