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
147
Issues
147
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
d7782445
Unverified
Commit
d7782445
authored
Jan 14, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IMPORT] Fix build issues
parent
81660d0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
Main.hs
bin/gargantext-import/Main.hs
+8
-4
package.yaml
package.yaml
+3
-1
No files found.
bin/gargantext-import/Main.hs
View file @
d7782445
...
...
@@ -13,7 +13,8 @@ Import a corpus binary.
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Strict #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Strict #-}
module
Main
where
...
...
@@ -21,14 +22,17 @@ import Servant (ServantErr)
import
Gargantext.Prelude
import
Gargantext.Database.Flow
(
flowCorpus
)
import
Gargantext.Text.Parsers
(
FileFormat
(
CsvHalFormat
))
import
Gargantext.Database.Utils
(
connectGargandb
,
runCmdDevWith
)
import
Gargantext.Database.Utils
(
Cmd
,
connectGargandb
,
runCmdDevWith
)
import
Gargantext.Database.Types.Node
(
NodeId
)
import
Gargantext.API.Node
()
-- instances
import
System.Environment
(
getArgs
)
-- main :: IO ()
main
=
do
[
iniPath
,
name
,
corpusPath
]
<-
getArgs
r
<-
runCmdDevWith
iniPath
$
flowCorpus
CsvHalFormat
corpusPath
(
cs
name
)
::
Cmd
ServantErr
NodeId
let
cmd
::
Cmd
ServantErr
NodeId
cmd
=
flowCorpus
CsvHalFormat
corpusPath
(
cs
name
)
r
<-
runCmdDevWith
iniPath
cmd
pure
()
package.yaml
View file @
d7782445
...
...
@@ -28,6 +28,7 @@ library:
-
Gargantext.API.Auth
-
Gargantext.API.Count
-
Gargantext.API.FrontEnd
-
Gargantext.API.Node
-
Gargantext.API.Orchestrator
-
Gargantext.API.Search
-
Gargantext.API.Settings
...
...
@@ -40,6 +41,7 @@ library:
-
Gargantext.Database.Schema.Node
-
Gargantext.Database.Cooc
-
Gargantext.Database.Tree
-
Gargantext.Database.Types.Node
-
Gargantext.Database.Utils
-
Gargantext.Prelude
-
Gargantext.Text
...
...
@@ -232,7 +234,7 @@ executables:
dependencies
:
-
gargantext
-
base
-
servant
-
servant
-server
tests
:
# garg-test:
...
...
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