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

DeckSpec

Description

Take the users's configuration file and pick out the data sources and other information. If an unrecoverable error occurs, return a text diagnostic in the Left constructor; otherwise, return an object of the schema data. Since the code is within the LoggingT IO monad, there are full diagnostics etc. output. As soon as an error be encountered, the definition of our monad means that evaluation backs out immediately.

Synopsis

Documentation

content :: UserId -> JRState -> IO (Either Text [UserDeckCpt]) Source #

Parse the user's configuration file. This might fail (returning a Left DT.Text) or succeed (returning a @Right [UserDeck.UserDeckCpt]). Currently, it does not in fact ever fail. If its implementation changes, retrieve function failToParse from VC (2017.Feb.3).