Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
2034f5c6
Commit
2034f5c6
authored
Nov 27, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] servant-job instances.
parent
e94af9bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
Types.hs
src/Gargantext/API/Orchestrator/Types.hs
+10
-8
stack.yaml
stack.yaml
+3
-2
No files found.
src/Gargantext/API/Orchestrator/Types.hs
View file @
2034f5c6
...
@@ -13,6 +13,7 @@ module Gargantext.API.Orchestrator.Types where
...
@@ -13,6 +13,7 @@ module Gargantext.API.Orchestrator.Types where
import
Gargantext.Prelude
import
Gargantext.Prelude
import
Control.Lens
hiding
(
elements
)
import
Control.Lens
hiding
(
elements
)
import
Data.Aeson
import
Data.Aeson
import
Data.Proxy
import
Data.Text
(
Text
)
import
Data.Text
(
Text
)
import
Data.Swagger
hiding
(
URL
,
url
,
port
)
import
Data.Swagger
hiding
(
URL
,
url
,
port
)
import
GHC.Generics
hiding
(
to
)
import
GHC.Generics
hiding
(
to
)
...
@@ -22,6 +23,7 @@ import Servant.Job.Types
...
@@ -22,6 +23,7 @@ import Servant.Job.Types
import
Servant.Job.Utils
(
jsonOptions
)
import
Servant.Job.Utils
(
jsonOptions
)
import
Test.QuickCheck
(
elements
)
import
Test.QuickCheck
(
elements
)
import
Test.QuickCheck.Arbitrary
import
Test.QuickCheck.Arbitrary
import
Gargantext.API.Ngrams
(
TODO
(
..
))
instance
Arbitrary
a
=>
Arbitrary
(
JobStatus
'S
a
fe
a
)
where
instance
Arbitrary
a
=>
Arbitrary
(
JobStatus
'S
a
fe
a
)
where
arbitrary
=
panic
"TODO"
arbitrary
=
panic
"TODO"
...
@@ -30,16 +32,16 @@ instance Arbitrary a => Arbitrary (JobOutput a) where
...
@@ -30,16 +32,16 @@ instance Arbitrary a => Arbitrary (JobOutput a) where
arbitrary
=
JobOutput
<$>
arbitrary
arbitrary
=
JobOutput
<$>
arbitrary
instance
ToSchema
URL
where
instance
ToSchema
URL
where
declareNamedSchema
=
panic
"TODO"
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyOutput
where
instance
ToSchema
AnyOutput
where
declareNamedSchema
=
panic
"TODO"
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyInput
where
instance
ToSchema
AnyInput
where
declareNamedSchema
=
panic
"TODO"
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyEvent
where
instance
ToSchema
AnyEvent
where
declareNamedSchema
=
panic
"TODO"
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
(
ToSchema
(
f
URL
),
ToSchema
a
)
=>
ToSchema
(
JobInput
f
a
)
instance
(
ToSchema
(
f
URL
),
ToSchema
a
)
=>
ToSchema
(
JobInput
f
a
)
...
@@ -147,11 +149,11 @@ instance ToSchema ScraperInput -- TODO _scin_ prefix
...
@@ -147,11 +149,11 @@ instance ToSchema ScraperInput -- TODO _scin_ prefix
instance
ToSchema
ScraperInput2
-- TODO _scin2_ prefix
instance
ToSchema
ScraperInput2
-- TODO _scin2_ prefix
instance
ToSchema
ScraperEvent
-- TODO _scev_ prefix
instance
ToSchema
ScraperEvent
-- TODO _scev_ prefix
instance
ToParamSchema
Offset
where
instance
ToParamSchema
Offset
--
where
toParamSchema
=
panic
"TODO"
--
toParamSchema = panic "TODO"
instance
ToParamSchema
Limit
where
instance
ToParamSchema
Limit
--
where
toParamSchema
=
panic
"TODO"
--
toParamSchema = panic "TODO"
type
ScrapersEnv
=
JobEnv
ScraperStatus
ScraperStatus
type
ScrapersEnv
=
JobEnv
ScraperStatus
ScraperStatus
...
...
stack.yaml
View file @
2034f5c6
...
@@ -35,8 +35,9 @@ extra-deps:
...
@@ -35,8 +35,9 @@ extra-deps:
#
#
-
git
:
https://gitlab.iscpif.fr/gargantext/patches-class
-
git
:
https://gitlab.iscpif.fr/gargantext/patches-class
commit
:
746b4ce0af8f9e600d555ad7e5b2973a940cdad9
commit
:
746b4ce0af8f9e600d555ad7e5b2973a940cdad9
-
git
:
https://github.com/np/servant-job.git
-
git
:
https://github.com/delanoe/servant-job.git
commit
:
096d197704c1f75daedfb87a820a0f495e83c32c
#- git: https://github.com/np/servant-job.git
commit
:
3fee20ed7743097d795769ffad8e1866fbd3c665
-
git
:
https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
-
git
:
https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
commit
:
1c636112b151110408e7c5a28cec39e46657358e
commit
:
1c636112b151110408e7c5a28cec39e46657358e
-
git
:
https://github.com/np/patches-map
-
git
:
https://github.com/np/patches-map
...
...
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