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
175
Issues
175
List
Board
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
62a89a42
Commit
62a89a42
authored
Dec 03, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve ToSchema instances
parent
1be75825
Pipeline
#633
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
Types.hs
src/Gargantext/API/Orchestrator/Types.hs
+3
-19
stack.yaml
stack.yaml
+1
-1
No files found.
src/Gargantext/API/Orchestrator/Types.hs
View file @
62a89a42
...
...
@@ -18,7 +18,6 @@ import Data.Text (Text)
import
Data.Swagger
hiding
(
URL
,
url
,
port
)
import
GHC.Generics
hiding
(
to
)
import
Servant.Job.Async
import
Servant.Job.Client
import
Servant.Job.Types
import
Servant.Job.Utils
(
jsonOptions
)
import
Test.QuickCheck
(
elements
)
...
...
@@ -31,24 +30,6 @@ instance Arbitrary a => Arbitrary (JobStatus 'Safe a) where
instance
Arbitrary
a
=>
Arbitrary
(
JobOutput
a
)
where
arbitrary
=
JobOutput
<$>
arbitrary
instance
ToSchema
URL
where
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyOutput
where
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyInput
where
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
ToSchema
AnyEvent
where
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
instance
(
ToSchema
(
f
URL
),
ToSchema
a
)
=>
ToSchema
(
JobInput
f
a
)
instance
ToSchema
a
=>
ToSchema
(
JobOutput
a
)
instance
ToSchema
(
NoCallbacks
a
)
-- | Main Types
data
ExternalAPIs
=
All
|
PubMed
...
...
@@ -78,6 +59,9 @@ instance Arbitrary ExternalAPIs
instance
ToSchema
ExternalAPIs
instance
ToSchema
URL
where
declareNamedSchema
_
=
declareNamedSchema
(
Proxy
::
Proxy
TODO
)
data
ScraperInput
=
ScraperInput
{
_scin_spider
::
!
Text
,
_scin_query
::
!
(
Maybe
Text
)
...
...
stack.yaml
View file @
62a89a42
...
...
@@ -37,7 +37,7 @@ extra-deps:
commit
:
746b4ce0af8f9e600d555ad7e5b2973a940cdad9
#- git: https://github.com/delanoe/servant-job.git
-
git
:
https://github.com/np/servant-job.git
commit
:
471f4952d2aa72bd373f850255a662442ad58c94
commit
:
8557bfc9472a1b2be0b7bc632c23701ba5f44bf8
-
git
:
https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
commit
:
1c636112b151110408e7c5a28cec39e46657358e
-
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