Commit ca9f9baf authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] so well typed.

parent 5b1aaded
Pipeline #189 canceled with stage
......@@ -28,7 +28,7 @@ import Gargantext.Database.Utils (Cmd, )
import Gargantext.Database.Types.Node (CorpusId)
--import Gargantext.Database.Schema.User (insertUsers, gargantuaUser, simpleUser)
import Gargantext.API.Node () -- instances
import Gargantext.API.Settings (newDevEnvWith, runCmdDev, cleanEnv, DevEnv)
import Gargantext.API.Settings (newDevEnvWith, runCmdDev, DevEnv)
import System.Environment (getArgs)
main :: IO ()
......
......@@ -278,8 +278,8 @@ type API = SwaggerFrontAPI :<|> GargAPI :<|> Get '[HTML] Html
---------------------------------------------------------------------
-- | Server declarations
server :: (HasConnection env, HasRepoVar env) => env
-> IO (Server API)
server :: (HasConnection env, HasRepoVar env, HasRepoSaver env)
=> env -> IO (Server API)
server env = do
-- orchestrator <- scrapyOrchestrator env
pure $ swaggerFront
......@@ -315,7 +315,7 @@ gargMock :: Server GargAPI
gargMock = mock apiGarg Proxy
---------------------------------------------------------------------
makeApp :: (HasConnection env, HasRepoVar env) => env -> IO Application
makeApp :: (HasConnection env, HasRepoVar env, HasRepoSaver env) => env -> IO Application
makeApp = fmap (serve api) . server
appMock :: Application
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment