k0ral / rss-conduit Goto Github PK
View Code? Open in Web Editor NEWStreaming parser/renderer for the RSS 2.0 standard.
Home Page: http://hackage.haskell.org/package/rss-conduit
License: Creative Commons Zero v1.0 Universal
Streaming parser/renderer for the RSS 2.0 standard.
Home Page: http://hackage.haskell.org/package/rss-conduit
License: Creative Commons Zero v1.0 Universal
After parsing an RssDocument
, there is a potential for space leaks if the value isn't brought to normal form. Currently, I have a bunch of orphan instances in my application for all of the types in Text.Rss.Types
, which isn't ideal. I propose adding NFData
instances from deepseq
to all of the datatypes in Text.Rss.Types
, and maybe examining if the types should be made strict.
If you want, I can take the lead on this, though it would require that Soostone/uri-bytestring#52 gets merged/released.
Would you consider using a license type that's supported by Cabal for your package so, i.e. the PublicDomain
license?
I think there needs to be a <channel>
tag under the <rss>
tag. I think it should be a short change to renderRssDocument
. Something like
renderRssDocument d = tag "rss" (attr "version" . pack . showVersion $ d^.documentVersionL) $ tag "channel" mempty $ do
textTag "title" $ d^.channelTitleL
I'm trying to render an RssDocument
to XML. No problem, except for the fact that renderRssDocument
doesn't actually appear to render everything contained in the document. In particular, it doesn't look like renderRssItem
is ever called.
Perhaps I'm just misunderstanding the intended API; are we supposed to call renderRssItem
ourselves, separately? I'm not sure how that would work since renderRssDocument
emits an </rss>
tag, meaning we can't insert things in the rss body that aren't inserted by renderRssDocument
When trying to parse this rss feed, the rssDocument
parser fails with InvalidEndElement
. The issue seems to lie in a weird nesting of category
tags.
<itunes:category text="Science & Medicine"><itunes:category text="Natural Sciences"></itunes:category></itunes:category>
HLint check: test/Arbitrary.hs:4:1: Warning: Use module export list
Found:
module Arbitrary where
Why not:
module Arbitrary (module Arbitrary) where
Note: An explicit list is usually better
Text/RSS/Lens.hs:2:1: Warning: Use module export list
Found:
module Text.RSS.Lens where
Why not:
module Text.RSS.Lens (module Text.RSS.Lens) where
Note: An explicit list is usually better
Text/RSS/Lens.hs:25:93: Warning: Use traverse
Found:
sequenceA (map inj c)
Why not:
traverse inj c
Text/RSS/Lens.hs:29:90: Warning: Use traverse
Found:
sequenceA (map inj e)
Why not:
traverse inj e
Text/RSS/Lens.hs:43:91: Warning: Use traverse
Found:
sequenceA (map inj i)
Why not:
traverse inj i
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.