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 |
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.
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).