]> Git — Sourcephile - gargantext.git/blob - src/Gargantext/API/Types.hs
[ISIDORE API] FIX ReplyOnly.
[gargantext.git] / src / Gargantext / API / Types.hs
1 {-|
2 Module : Gargantext.API.Types
3 Description : Server API main Types
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
8 Portability : POSIX
9
10 -}
11
12
13 {-# LANGUAGE NoImplicitPrelude #-}
14 {-# LANGUAGE RankNTypes #-}
15
16 module Gargantext.API.Types
17 where
18
19 import Servant
20 import Gargantext.API.Settings
21 import Gargantext.API.Ngrams
22 import Gargantext.Database.Tree
23 import Gargantext.Core.Types
24 import Gargantext.Database.Utils
25 import Gargantext.Database.Schema.Node
26
27
28 type GargServer api =
29 forall env err m.
30 ( CmdM env err m
31 , HasNodeError err
32 , HasInvalidError err
33 , HasTreeError err
34 , HasRepo env
35 , HasSettings env
36 )
37 => ServerT api m
38
39
40
41