Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pubmed
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
pubmed
Commits
dc1457a9
Commit
dc1457a9
authored
Sep 18, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] ignoreTree
parent
7e949849
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Main.hs
app/Main.hs
+1
-1
Parser.hs
src/PUBMED/Parser.hs
+1
-1
No files found.
app/Main.hs
View file @
dc1457a9
...
...
@@ -6,4 +6,4 @@ import PUBMED (getMetadataWith)
main
::
IO
()
main
=
getMetadataWith
"bisphenol"
(
Just
100
0000
)
>>=
print
main
=
getMetadataWith
"bisphenol"
(
Just
100
)
>>=
print
src/PUBMED/Parser.hs
View file @
dc1457a9
...
...
@@ -53,7 +53,7 @@ tagUntil name = matching (/= name)
-- | Utility function that consumes everything but the tag given
-- usefull because we have to consume every data.
manyTagsUntil_
::
MonadThrow
m
=>
Name
->
ConduitT
Event
o
m
()
manyTagsUntil_
n
=
many_
(
ignoreTree
Content
(
tagUntil
n
)
ignoreAttrs
)
manyTagsUntil_
n
=
many_
(
ignoreTree
(
tagUntil
n
)
ignoreAttrs
)
manyTagsUntil_'
::
MonadThrow
m
=>
Name
->
ConduitT
Event
o
m
()
manyTagsUntil_'
=
many_
.
ignoreEmptyTag
.
tagUntil
...
...
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