This Haskell library implements a streaming parser/renderer for the Atom 1.0 syndication format, based on conduits.
Parsers are as much lenient as possible. E.g. unexpected tags are simply ignored.
Streaming parser/renderer for the Atom 1.0 standard (RFC 4287).
Home Page: http://hackage.haskell.org/package/atom-conduit
License: Creative Commons Zero v1.0 Universal
This Haskell library implements a streaming parser/renderer for the Atom 1.0 syndication format, based on conduits.
Parsers are as much lenient as possible. E.g. unexpected tags are simply ignored.
I believe this is due to a newer hlint:
> /tmp/stackage-build13/atom-conduit-0.4.0.1$ dist/build/Tests/Tests
Tests
Unit tests
Link element: OK
Person construct: OK
Generator element: OK
Source element: OK
Text construct: OK
Simple case: OK
HLint check: Text/Atom/Lens.hs:3:1: Warning: Use module export list
Found:
module Text.Atom.Lens where
Why not:
module Text.Atom.Lens (module Text.Atom.Lens) where
Note: An explicit list is usually better
Text/Atom/Types.hs:31:1: Warning: Use module export list
Found:
module Text.Atom.Types where
Why not:
module Text.Atom.Types (module Text.Atom.Types) where
Note: An explicit list is usually better
Text/Atom/Conduit/Render.hs:1:1: Warning: Unused LANGUAGE pragma
Found:
{-# LANGUAGE DeriveAnyClass #-}
Why not remove it.
3 hints
FAIL (0.82s)
expected: True
but got: False
1 out of 7 tests failed (0.83s)
I'm guessing this is because of https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail:
test/Main.hs:218:5: error:
• No instance for (Control.Monad.Fail.MonadFail Gen)
arising from a do statement
with the failable pattern ‘Just content’
• In a stmt of a 'do' block:
Just content <- fromNullable . pack <$> listOf1 alphaNum
In the expression:
do Just content <- fromNullable . pack <$> listOf1 alphaNum
AtomGenerator <$> arbitrary <*> arbitrary <*> pure content
In an equation for ‘arbitrary’:
arbitrary
= do Just content <- fromNullable . pack <$> listOf1 alphaNum
AtomGenerator <$> arbitrary <*> arbitrary <*> pure content
|
218 | Just content <- fromNullable . pack <$> listOf1 alphaNum
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.