[IMPORT] Fix build issues

parent 81660d0f
......@@ -13,6 +13,7 @@ Import a corpus binary.
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# 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 ()
......@@ -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:
......
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