Commit 6a36797e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLI] mapConcurrently.

parent ef1ceba3
...@@ -30,7 +30,7 @@ import Data.Text (Text) ...@@ -30,7 +30,7 @@ import Data.Text (Text)
import Data.List (cycle) import Data.List (cycle)
import System.IO (hPutStr, hFlush, stderr) import System.IO (hPutStr, hFlush, stderr)
import System.Environment import System.Environment
--import Control.Concurrent.Async as CCA (mapConcurrently) import Control.Concurrent.Async as CCA (mapConcurrently)
import Gargantext.Prelude import Gargantext.Prelude
import Gargantext.Text.Context import Gargantext.Text.Context
...@@ -68,7 +68,8 @@ main = do ...@@ -68,7 +68,8 @@ main = do
putStrLn $ show $ length termList putStrLn $ show $ length termList
let patterns = WithList $ buildPatterns 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 mapM (putStrLn . show) corpusIndexed
let myCooc = coocOn identity corpusIndexed let myCooc = coocOn identity corpusIndexed
......
...@@ -160,6 +160,7 @@ executables: ...@@ -160,6 +160,7 @@ executables:
- -O2 - -O2
- -Wmissing-signatures - -Wmissing-signatures
dependencies: dependencies:
- async
- base - base
- containers - containers
- gargantext - gargantext
......
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