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
159
Issues
159
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
f7adbd9d
Commit
f7adbd9d
authored
Apr 02, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] compilation before refactoring.
parent
da694a44
Pipeline
#324
failed with stage
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
Main.hs
bin/gargantext-import/Main.hs
+2
-2
Flow.hs
src/Gargantext/Database/Flow.hs
+4
-9
Annuaire.hs
src/Gargantext/Database/Flow/Annuaire.hs
+1
-1
GrandDebat.hs
src/Gargantext/Text/Parsers/GrandDebat.hs
+3
-0
No files found.
bin/gargantext-import/Main.hs
View file @
f7adbd9d
...
@@ -26,7 +26,7 @@ import Gargantext.Prelude
...
@@ -26,7 +26,7 @@ import Gargantext.Prelude
import
Gargantext.Database.Flow
(
FlowCmdM
,
flowCorpus
)
import
Gargantext.Database.Flow
(
FlowCmdM
,
flowCorpus
)
import
Gargantext.Text.Parsers
(
FileFormat
(
CsvHalFormat
))
import
Gargantext.Text.Parsers
(
FileFormat
(
CsvHalFormat
))
import
Gargantext.Database.Utils
(
Cmd
,
)
import
Gargantext.Database.Utils
(
Cmd
,
)
import
Gargantext.Database.Types.Node
(
CorpusId
)
import
Gargantext.Database.Types.Node
(
CorpusId
,
toHyperdataDocument
)
import
Gargantext.Database.Schema.User
(
insertUsersDemo
)
import
Gargantext.Database.Schema.User
(
insertUsersDemo
)
import
Gargantext.Text.Terms
(
TermType
(
..
))
import
Gargantext.Text.Terms
(
TermType
(
..
))
import
Gargantext.Core
(
Lang
(
..
))
import
Gargantext.Core
(
Lang
(
..
))
...
@@ -55,7 +55,7 @@ main = do
...
@@ -55,7 +55,7 @@ main = do
<$>
readFile
corpusPath
<$>
readFile
corpusPath
::
IO
[[
GrandDebatReference
]]
::
IO
[[
GrandDebatReference
]]
)
)
flowCorpus
(
Text
.
pack
user
)
(
Text
.
pack
name
)
(
Multi
FR
)
docs
flowCorpus
(
Text
.
pack
user
)
(
Text
.
pack
name
)
(
Multi
FR
)
(
map
(
map
toHyperdataDocument
)
docs
)
withDevEnv
iniPath
$
\
env
->
do
withDevEnv
iniPath
$
\
env
->
do
...
...
src/Gargantext/Database/Flow.hs
View file @
f7adbd9d
...
@@ -88,13 +88,12 @@ type FlowCorpus a = ( AddUniqId a
...
@@ -88,13 +88,12 @@ type FlowCorpus a = ( AddUniqId a
------------------------------------------------------------------------
------------------------------------------------------------------------
--{-
flowAnnuaire
::
FlowCmdM
env
ServantErr
m
flowAnnuaire'
::
FlowCmdM
env
ServantErr
m
=>
Username
->
CorpusName
->
(
TermType
Lang
)
->
FilePath
->
m
AnnuaireId
=>
Username
->
CorpusName
->
(
TermType
Lang
)
->
FilePath
->
m
AnnuaireId
flowAnnuaire
'
u
n
l
filePath
=
do
flowAnnuaire
u
n
l
filePath
=
do
docs
<-
liftIO
$
((
splitEvery
500
<$>
deserialiseImtUsersFromFile
filePath
)
::
IO
[[
HyperdataContact
]])
docs
<-
liftIO
$
((
splitEvery
500
<$>
deserialiseImtUsersFromFile
filePath
)
::
IO
[[
HyperdataContact
]])
flow
Annuaire
u
n
(
Multi
FR
)
docs
flow
(
Nothing
::
Maybe
HyperdataAnnuaire
)
u
n
l
docs
--}
flowCorpusDebat
::
FlowCmdM
env
ServantErr
m
flowCorpusDebat
::
FlowCmdM
env
ServantErr
m
=>
Username
->
CorpusName
=>
Username
->
CorpusName
...
@@ -145,10 +144,6 @@ flowCorpus :: (FlowCmdM env ServantErr m, FlowCorpus a)
...
@@ -145,10 +144,6 @@ flowCorpus :: (FlowCmdM env ServantErr m, FlowCorpus a)
=>
Username
->
CorpusName
->
TermType
Lang
->
[[
a
]]
->
m
CorpusId
=>
Username
->
CorpusName
->
TermType
Lang
->
[[
a
]]
->
m
CorpusId
flowCorpus
=
flow
(
Nothing
::
Maybe
HyperdataCorpus
)
flowCorpus
=
flow
(
Nothing
::
Maybe
HyperdataCorpus
)
flowAnnuaire
::
(
FlowCmdM
env
ServantErr
m
,
FlowCorpus
a
)
=>
Username
->
CorpusName
->
TermType
Lang
->
[[
a
]]
->
m
CorpusId
flowAnnuaire
=
flow
(
Nothing
::
Maybe
HyperdataAnnuaire
)
flowCorpusUser
::
(
FlowCmdM
env
ServantErr
m
,
MkCorpus
c
)
flowCorpusUser
::
(
FlowCmdM
env
ServantErr
m
,
MkCorpus
c
)
=>
Lang
->
Username
->
CorpusName
->
Maybe
c
->
[
NodeId
]
->
m
CorpusId
=>
Lang
->
Username
->
CorpusName
->
Maybe
c
->
[
NodeId
]
->
m
CorpusId
...
...
src/Gargantext/Database/Flow/Annuaire.hs
View file @
f7adbd9d
...
@@ -34,5 +34,5 @@ flowAnnuaire filePath = do
...
@@ -34,5 +34,5 @@ flowAnnuaire filePath = do
$ map (\h-> ToDbContact h)
$ map (\h-> ToDbContact h)
$ map addUniqIdsContact contacts
$ map addUniqIdsContact contacts
printDebug "length annuaire" ps
printDebug "length annuaire" ps
-}
src/Gargantext/Text/Parsers/GrandDebat.hs
View file @
f7adbd9d
...
@@ -101,3 +101,6 @@ instance ReadFile [GrandDebatReference]
...
@@ -101,3 +101,6 @@ instance ReadFile [GrandDebatReference]
--readFile fp = maybe [] identity <$> decode <$> DBL.readFile fp
--readFile fp = maybe [] identity <$> decode <$> DBL.readFile fp
--readFile fp = either (panic . Text.pack) identity <$> P.eitherDecode <$> DBL.readFile fp
--readFile fp = either (panic . Text.pack) identity <$> P.eitherDecode <$> DBL.readFile fp
readFile
fp
=
P
.
parseLazyByteString
(
P
.
arrayOf
P
.
value
)
<$>
DBL
.
readFile
fp
readFile
fp
=
P
.
parseLazyByteString
(
P
.
arrayOf
P
.
value
)
<$>
DBL
.
readFile
fp
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