gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Gargantext.API.Prelude

Description

 
Synopsis

Documentation

type GargNoServer' env err m = (CmdM env err m, HasNodeStory env err m, HasSettings env, HasNodeError err) Source #

type GargNoServer t = forall env err m. GargNoServer' env err m => m t Source #

This Type is needed to prepare the function before the GargServer

type GargServerM env err api = (EnvC env, ErrC err) => ServerT api (GargM env err) Source #

type GargM env err = ReaderT env (ExceptT err IO) Source #

type GargServer api = forall env err m. GargServerT env err m api Source #

type GargServerT env err m api = GargServerC env err m => ServerT api m Source #

type GargServerC env err m = (CmdRandom env err m, HasNodeStory env err m, EnvC env, ErrC err, MimeRender JSON err) Source #

type ErrC err = (HasNodeError err, HasInvalidError err, HasTreeError err, HasServerError err, HasJoseError err, ToJSON err, Exception err) Source #

type EnvC env = (HasConnectionPool env, HasSettings env, HasJobEnv env JobLog JobLog, HasConfig env, HasNodeStoryEnv env, HasMail env) Source #

type HasJobEnv' env = HasJobEnv env JobLog JobLog Source #

class HasJoseError e where Source #

Instances

Instances details
HasJoseError GargError Source # 
Instance details

Defined in Gargantext.API.Prelude

simuLogs :: MonadBase IO m => (JobLog -> m ()) -> Int -> m JobLog Source #

Utils | Simulate logs

simuTask :: MonadBase IO m => (JobLog -> m ()) -> Int -> Int -> m () Source #

class HasServerError err where #

Instances

Instances details
HasServerError ServerError 
Instance details

Defined in Servant.Job.Core

HasServerError GargError Source # 
Instance details

Defined in Gargantext.API.Prelude