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
150
Issues
150
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
9e4f7476
Verified
Commit
9e4f7476
authored
Aug 29, 2024
by
Przemyslaw Kaminski
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[config] proper NLP table parsing
parent
19585ea5
Pipeline
#6557
passed with stages
in 44 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
NLP.hs
src/Gargantext/Core/Config/NLP.hs
+4
-3
Prelude.hs
src/Gargantext/Database/Prelude.hs
+1
-2
No files found.
src/Gargantext/Core/Config/NLP.hs
View file @
9e4f7476
...
...
@@ -45,10 +45,11 @@ data NLPConfig = NLPConfig { _nlp_default :: URI
deriving
(
Generic
,
Show
)
instance
FromValue
NLPConfig
where
fromValue
=
parseTableFromValue
$
do
_nlp_default
<-
reqKey
"EN"
fromValue
v
=
do
_nlp_default
<-
parseTableFromValue
(
reqKey
"EN"
)
v
-- _nlp_languages <- fromValue <$> getTable
let
_nlp_languages
=
mempty
MkTable
t
<-
parseTableFromValue
getTable
v
_nlp_languages
<-
mapM
fromValue
(
snd
<$>
t
)
return
$
NLPConfig
{
..
}
...
...
src/Gargantext/Database/Prelude.hs
View file @
9e4f7476
...
...
@@ -120,8 +120,7 @@ mkCmd k = do
pool
<-
view
connPool
liftBase
$
withResource
pool
(
liftBase
.
k
)
runCmd
::
(
HasConnectionPool
env
)
=>
env
runCmd
::
env
->
Cmd''
env
err
a
->
IO
(
Either
err
a
)
runCmd
env
m
=
runExceptT
$
runReaderT
m
env
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
5660aec0
·
Oct 08, 2024
mentioned in commit
5660aec0
mentioned in commit 5660aec07ec5a0a0a5468f440092c1a8f57a864e
Toggle commit list
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