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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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.
...
@@ -13,7 +13,8 @@ Import a corpus binary.
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Strict #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Strict #-}
module
Main
where
module
Main
where
...
@@ -21,14 +22,17 @@ import Servant (ServantErr)
...
@@ -21,14 +22,17 @@ import Servant (ServantErr)
import
Gargantext.Prelude
import
Gargantext.Prelude
import
Gargantext.Database.Flow
(
flowCorpus
)
import
Gargantext.Database.Flow
(
flowCorpus
)
import
Gargantext.Text.Parsers
(
FileFormat
(
CsvHalFormat
))
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
)
import
System.Environment
(
getArgs
)
-- main :: IO ()
-- main :: IO ()
main
=
do
main
=
do
[
iniPath
,
name
,
corpusPath
]
<-
getArgs
[
iniPath
,
name
,
corpusPath
]
<-
getArgs
let
cmd
::
Cmd
ServantErr
NodeId
r
<-
runCmdDevWith
iniPath
$
flowCorpus
CsvHalFormat
corpusPath
(
cs
name
)
::
Cmd
ServantErr
NodeId
cmd
=
flowCorpus
CsvHalFormat
corpusPath
(
cs
name
)
r
<-
runCmdDevWith
iniPath
cmd
pure
()
pure
()
package.yaml
View file @
d7782445
...
@@ -28,6 +28,7 @@ library:
...
@@ -28,6 +28,7 @@ library:
-
Gargantext.API.Auth
-
Gargantext.API.Auth
-
Gargantext.API.Count
-
Gargantext.API.Count
-
Gargantext.API.FrontEnd
-
Gargantext.API.FrontEnd
-
Gargantext.API.Node
-
Gargantext.API.Orchestrator
-
Gargantext.API.Orchestrator
-
Gargantext.API.Search
-
Gargantext.API.Search
-
Gargantext.API.Settings
-
Gargantext.API.Settings
...
@@ -40,6 +41,7 @@ library:
...
@@ -40,6 +41,7 @@ library:
-
Gargantext.Database.Schema.Node
-
Gargantext.Database.Schema.Node
-
Gargantext.Database.Cooc
-
Gargantext.Database.Cooc
-
Gargantext.Database.Tree
-
Gargantext.Database.Tree
-
Gargantext.Database.Types.Node
-
Gargantext.Database.Utils
-
Gargantext.Database.Utils
-
Gargantext.Prelude
-
Gargantext.Prelude
-
Gargantext.Text
-
Gargantext.Text
...
@@ -232,7 +234,7 @@ executables:
...
@@ -232,7 +234,7 @@ executables:
dependencies
:
dependencies
:
-
gargantext
-
gargantext
-
base
-
base
-
servant
-
servant
-server
tests
:
tests
:
# garg-test:
# 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