Module

Perspectives.BasicConstructors

#constructContext

constructContext :: ContextSerialization -> MonadPerspectives (Either (Array UserMessage) ContextInstance)

Construct a context from the serialization. If a context with the given id exists, returns a UserMessage. Type checks the context and returns any semantic problems as UserMessages. If there are no problems, returns the ID. Caches the result but does not save it to Couchdb, neither adds it to a Transaction. Instead, use saveContextInstance to do so.

#constructAnotherRol

constructAnotherRol :: EnumeratedRoleType -> String -> RolSerialization -> MonadPerspectives RoleInstance

Construct a Role instance for a Context instance. Caches the instance but does not save it, nor add it to a Transaction. User saveRoleInstance for that purpose

Modules