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
0077455e
Commit
0077455e
authored
Apr 06, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old withSocketsDo
parent
84e9efb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Wrapper.hs
src/Arxiv/Wrapper.hs
+2
-3
No files found.
src/Arxiv/Wrapper.hs
View file @
0077455e
...
...
@@ -12,7 +12,6 @@ import Network.Api.Arxiv (Expression(..), Field(..), (/*/), (/+/),(/-/))
import
Network.HTTP.Conduit
(
parseRequest
)
import
Network.HTTP.Simple
as
HT
import
Network.HTTP.Types.Status
import
Network.Socket
(
withSocketsDo
)
import
Text.HTML.TagSoup
import
qualified
Data.ByteString
as
B
hiding
(
unpack
)
import
qualified
Data.ByteString.Char8
as
B
(
unpack
)
...
...
@@ -31,11 +30,11 @@ type Soup = Tag String
------------------------------------------------------------
-- | Simple Query search for terms in All fields
apiSimple
::
Maybe
Limit
->
[
String
]
->
IO
[
Result
]
apiSimple
limit
query
=
withSocketsDo
(
execQuery
limit
$
simpleQuery
query
)
apiSimple
limit
query
=
execQuery
limit
$
simpleQuery
query
-- | Complex Query search for terms in specific fields to be defined by Ax.Query
apiComplex
::
Maybe
Limit
->
Ax
.
Query
->
IO
[
Result
]
apiComplex
limit
query
=
withSocketsDo
(
execQuery
limit
query
)
apiComplex
limit
query
=
execQuery
limit
query
------------------------------------------------------------
simpleQuery
::
[
String
]
->
Ax
.
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