Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type GargM env err = ReaderT env (ExceptT err IO)
- type GargServer api = forall env err m. MonadLogger m => GargServerT env err m api
- type GargServerC env err m = (CmdRandom env err m, HasNodeStory env err m, EnvC env, ErrC err, ToJSON err)
- type HasJobEnv' env = HasJobEnv env JobLog JobLog
- type GargNoServer t = forall env err m. GargNoServer' env err m => m t
- type EnvC env = (HasConnectionPool env, HasSettings env, HasJobEnv env JobLog JobLog, HasConfig env, HasNodeStoryEnv env, HasMail env, HasNLPServer env)
- type ErrC err = (HasNodeError err, HasValidationError err, HasTreeError err, HasServerError err, HasAuthenticationError err, Exception err)
- type GargServerT env err m api = GargServerC env err m => ServerT api m
- type GargServerM env err api = (EnvC env, ErrC err) => ServerT api (GargM env err)
- type GargNoServer' env err m = (CmdM env err m, HasNodeStory env err m, HasSettings env, HasNodeError err)
- simuLogs :: (MonadBase IO m, MonadJobStatus m) => JobHandle m -> Int -> m ()
- authenticationError :: (MonadError e m, HasAuthenticationError e) => AuthenticationError -> m a
- class HasServerError err where
- _ServerError :: Prism' err ServerError
- serverError :: (MonadError err m, HasServerError err) => ServerError -> m a
Documentation
type GargServer api = forall env err m. MonadLogger m => GargServerT env err m api #
type GargServerC env err m = (CmdRandom env err m, HasNodeStory env err m, EnvC env, ErrC err, ToJSON err) #
type HasJobEnv' env = HasJobEnv env JobLog JobLog #
type GargNoServer t = forall env err m. GargNoServer' env err m => m t #
This Type is needed to prepare the function before the GargServer
type EnvC env = (HasConnectionPool env, HasSettings env, HasJobEnv env JobLog JobLog, HasConfig env, HasNodeStoryEnv env, HasMail env, HasNLPServer env) #
type ErrC err = (HasNodeError err, HasValidationError err, HasTreeError err, HasServerError err, HasAuthenticationError err, Exception err) #
type GargServerT env err m api = GargServerC env err m => ServerT api m #
type GargNoServer' env err m = (CmdM env err m, HasNodeStory env err m, HasSettings env, HasNodeError err) #
authenticationError :: (MonadError e m, HasAuthenticationError e) => AuthenticationError -> m a #
serverError :: (MonadError err m, HasServerError err) => ServerError -> m a #