Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
ca9f9baf
Commit
ca9f9baf
authored
Feb 12, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] so well typed.
parent
5b1aaded
Pipeline
#189
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Main.hs
bin/gargantext-import/Main.hs
+1
-1
API.hs
src/Gargantext/API.hs
+3
-3
No files found.
bin/gargantext-import/Main.hs
View file @
ca9f9baf
...
...
@@ -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
()
...
...
src/Gargantext/API.hs
View file @
ca9f9baf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment