Code Monkey home page Code Monkey logo

Comments (2)

Gabriella439 avatar Gabriella439 commented on June 17, 2024 1

@f-f: I think I just need to hurry up and standardize dhall-lang/dhall-lang#335. That seems like the correct solution to this

from spago.

f-f avatar f-f commented on June 17, 2024

@Gabriel439 would you have any suggestion on how to go about fixing this? The goal here is to migrate existing configs to the new version/hashes as automatically as possible.

I considered the following flow:

  • if there's a hash and a cache hit, try to decodeWithVersion it. If it's an old version substitute the new current version of the standard in the Haskell-CBOR Term and try to decode anyways.
  • If this last decoding is successful, refreeze the import with the current standard version

Would this makes sense?

I took a stab at a modified version of Dhall.Binary.decodeWithVersion, but Dhall.Binary.decode is not exported (and I'm not sure it'd be a good idea to export it?), so I'm unsure how to proceed

from spago.

Related Issues (20)

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.