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
6a36797e
Commit
6a36797e
authored
Jul 03, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLI] mapConcurrently.
parent
ef1ceba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Main.hs
bin/gargantext-cli/Main.hs
+3
-2
package.yaml
package.yaml
+1
-0
No files found.
bin/gargantext-cli/Main.hs
View file @
6a36797e
...
...
@@ -30,7 +30,7 @@ import Data.Text (Text)
import
Data.List
(
cycle
)
import
System.IO
(
hPutStr
,
hFlush
,
stderr
)
import
System.Environment
--
import Control.Concurrent.Async as CCA (mapConcurrently)
import
Control.Concurrent.Async
as
CCA
(
mapConcurrently
)
import
Gargantext.Prelude
import
Gargantext.Text.Context
...
...
@@ -68,7 +68,8 @@ main = do
putStrLn
$
show
$
length
termList
let
patterns
=
WithList
$
buildPatterns
termList
corpusIndexed
<-
mapMP
(
terms
patterns
)
corpus
--corpusIndexed <- mapMP (terms patterns) corpus
corpusIndexed
<-
mapConcurrently
(
terms
patterns
)
corpus
mapM
(
putStrLn
.
show
)
corpusIndexed
let
myCooc
=
coocOn
identity
corpusIndexed
...
...
package.yaml
View file @
6a36797e
...
...
@@ -160,6 +160,7 @@ executables:
-
-O2
-
-Wmissing-signatures
dependencies
:
-
async
-
base
-
containers
-
gargantext
...
...
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