Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arxiv-api
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
gargantext
crawlers
arxiv-api
Commits
3a61fb84
Commit
3a61fb84
authored
Apr 07, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apiSimpleC function
parent
84b68adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Arxiv.hs
src/Arxiv.hs
+6
-0
No files found.
src/Arxiv.hs
View file @
3a61fb84
...
@@ -41,6 +41,12 @@ batchSize = 50
...
@@ -41,6 +41,12 @@ batchSize = 50
apiSimple
::
Maybe
Limit
->
[
String
]
->
IO
[
Result
]
apiSimple
::
Maybe
Limit
->
[
String
]
->
IO
[
Result
]
apiSimple
limit
query
=
execQuery
limit
$
simpleQuery
query
apiSimple
limit
query
=
execQuery
limit
$
simpleQuery
query
apiSimpleC
::
MonadResource
m
=>
Maybe
Limit
->
[
String
]
->
IO
(
Int
,
C
.
ConduitT
()
Result
m
()
)
apiSimpleC
Nothing
query
=
searchAxv'
$
simpleQuery
query
apiSimpleC
(
Just
limit
)
query
=
do
(
cnt
,
resC
)
<-
searchAxv'
$
simpleQuery
query
pure
(
cnt
,
resC
.|
C
.
takeC
limit
)
-- | Complex Query search for terms in specific fields to be defined by Ax.Query
-- | Complex Query search for terms in specific fields to be defined by Ax.Query
apiComplex
::
Maybe
Limit
->
Ax
.
Query
->
IO
[
Result
]
apiComplex
::
Maybe
Limit
->
Ax
.
Query
->
IO
[
Result
]
apiComplex
limit
query
=
execQuery
limit
query
apiComplex
limit
query
=
execQuery
limit
query
...
...
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