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

DeckData

Description

A user has a tree-structured hierarchy of views which specify the order in which cards are presented for review; hence the usage of terms _node_ and _end_ in this source.

Synopsis

Documentation

userDeckNodes :: forall m. MonadIO m => UserId -> ReaderT (PersistEntityBackend UserDeckNode) m [Entity UserDeckNode] Source #

Return a list of all deck nodes for the given user.

userDeckEnds :: forall m. MonadIO m => UserId -> ReaderT (PersistEntityBackend UserDeckEnd) m [Entity UserDeckEnd] Source #

Return a list of all deck ends for the given user.

userDeckEndsViewed :: forall m. MonadIO m => UserId -> [ViewId] -> ReaderT (PersistEntityBackend UserDeckEnd) m [Entity UserDeckEnd] Source #

Return a list of all deck nodes for the given user, that refer to one of the given list of view.