Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext-prelude
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-prelude
Commits
a03c07f9
Commit
a03c07f9
authored
Nov 10, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.iscpif.fr/cgenie/haskell-gargantext-prelude
parents
c0033cb2
35b09629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
gargantext-prelude.cabal
gargantext-prelude.cabal
+32
-5
Config.hs
src/Gargantext/Prelude/Config.hs
+2
-0
No files found.
gargantext-prelude.cabal
View file @
a03c07f9
cabal-version: 1.12
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.3
3.0
.
-- This file has been generated from package.yaml by hpack version 0.3
4.4
.
--
--
-- see: https://github.com/sol/hpack
-- see: https://github.com/sol/hpack
--
--
-- hash:
6e48706c178c8a0ee4f59e1fb5299dd49cee97a6284b076799aed4905fc8e3f8
-- hash:
b57ed500a19dd72c1f7cf70ee61accb0235eb575fdaaf0c9a291093db2a99d34
name: gargantext-prelude
name: gargantext-prelude
version: 0.1.0.0
version: 0.1.0.0
...
@@ -42,7 +42,16 @@ library
...
@@ -42,7 +42,16 @@ library
Paths_gargantext_prelude
Paths_gargantext_prelude
hs-source-dirs:
hs-source-dirs:
src
src
default-extensions: DataKinds DeriveGeneric FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedStrings RankNTypes
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
MultiParamTypeClasses
NoImplicitPrelude
OverloadedStrings
RankNTypes
build-depends:
build-depends:
MonadRandom
MonadRandom
, SHA
, SHA
...
@@ -82,7 +91,16 @@ executable gargantext-prelude-exe
...
@@ -82,7 +91,16 @@ executable gargantext-prelude-exe
Paths_gargantext_prelude
Paths_gargantext_prelude
hs-source-dirs:
hs-source-dirs:
app
app
default-extensions: DataKinds DeriveGeneric FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedStrings RankNTypes
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
MultiParamTypeClasses
NoImplicitPrelude
OverloadedStrings
RankNTypes
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
build-depends:
MonadRandom
MonadRandom
...
@@ -125,7 +143,16 @@ test-suite gargantext-prelude-test
...
@@ -125,7 +143,16 @@ test-suite gargantext-prelude-test
Paths_gargantext_prelude
Paths_gargantext_prelude
hs-source-dirs:
hs-source-dirs:
test
test
default-extensions: DataKinds DeriveGeneric FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedStrings RankNTypes
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
MultiParamTypeClasses
NoImplicitPrelude
OverloadedStrings
RankNTypes
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
build-depends:
MonadRandom
MonadRandom
...
...
src/Gargantext/Prelude/Config.hs
View file @
a03c07f9
...
@@ -44,6 +44,7 @@ data GargConfig = GargConfig { _gc_url :: !T.Text
...
@@ -44,6 +44,7 @@ data GargConfig = GargConfig { _gc_url :: !T.Text
,
_gc_frame_searx_url
::
!
T
.
Text
,
_gc_frame_searx_url
::
!
T
.
Text
,
_gc_frame_istex_url
::
!
T
.
Text
,
_gc_frame_istex_url
::
!
T
.
Text
,
_gc_max_docs_parsers
::
!
Integer
,
_gc_max_docs_scrapers
::
!
Integer
,
_gc_max_docs_scrapers
::
!
Integer
}
}
deriving
(
Generic
,
Show
)
deriving
(
Generic
,
Show
)
...
@@ -72,6 +73,7 @@ readConfig fp = do
...
@@ -72,6 +73,7 @@ readConfig fp = do
(
stripRight
'/'
$
val
"FRAME_VISIO_URL"
)
(
stripRight
'/'
$
val
"FRAME_VISIO_URL"
)
(
stripRight
'/'
$
val
"FRAME_SEARX_URL"
)
(
stripRight
'/'
$
val
"FRAME_SEARX_URL"
)
(
stripRight
'/'
$
val
"FRAME_ISTEX_URL"
)
(
stripRight
'/'
$
val
"FRAME_ISTEX_URL"
)
(
read
$
cs
$
val
"MAX_DOCS_PARSERS"
)
(
read
$
cs
$
val
"MAX_DOCS_SCRAPERS"
)
(
read
$
cs
$
val
"MAX_DOCS_SCRAPERS"
)
{- UNUSED
{- UNUSED
...
...
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