Code Monkey home page Code Monkey logo

atom-conduit's Introduction

atom-conduit

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.

atom-conduit's People

Contributors

k0ral avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gkleen

atom-conduit's Issues

Test suite failure

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)

Test suite can't compile

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
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.