GithubHelp home page GithubHelp logo

aeson-commit's People

Contributors

considerate avatar jonascarpay avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jonascarpay

aeson-commit's Issues

Build failures with mtl-2.3

When I build this package with the mtl-2.3 release I get this failure:

src/Data/Aeson/Commit.hs:64:40: error:
    Not in scope: type constructor or class ‘ExceptT’
   |
64 | newtype Commit a = Commit {unCommit :: ExceptT [Parser Void] Parser a}
   |                                        ^^^^^^^

This build failure is due to haskell/mtl#117 which will be fixed in a follow-up release of mtl.

Building with a version of mtl that includes a fix to that issue, I'm getting

src/Data/Aeson/Commit.hs:73:3: error:
    Variable not in scope:
      lift :: Parser b -> ExceptT [Parser Void] Parser b
   |
73 |   lift $ post a
   |   ^^^^

Fixes

  • fix cabal category
  • add source repo links
  • there was some issue in a doc that I forgot about
  • add to stack
  • sensible export order, the actual definition of Commit doesn't really matter

Add Nix code for building

Now that we require newer Aeson versions, aeson-commit doesn't build cleanly on nix. Add nix code to handle getting the correct versions of Aeson and its dependencies

Error messages show incorrect JSONPath

The aeson library has the concept of a JSONPath that is shown on parse errors like

Error in $.posts[0].comments[2]: <error text>

These JSONPaths are discarded when parsing using Commit, so while the backtracking is limited to output the error message at the relevant point, the error messages are still quite uninformative if the source JSON is large.

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.