Giter Club home page Giter Club logo

versioning's People

Contributors

kquick avatar langston-barrett avatar lortabac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

versioning's Issues

Allow effectful upgrading

We should provide a way to upgrade effectfully. The use cases that come to my mind are reading the default values from a database, keeping some state or logging/monitoring.

I am not sure what the best way is to add this functionality. The simplest solution would be to add a new UpgradeM module and let the users choose between pure and monadic upgrading by importing the module they need. The downside is that it would become possible to define instances for both upgrading modes, which may be a bad idea.

Unfortunately I was not able to find a way to unify the interface without making pure upgrading more cumbersome.

Improve the CI.

Exclude buggy minor GHC versions, include the most recent versions, evaluate alternatives to Travis.

Provide Generic utilities for `Adapt`

Sometimes the Adapt instances are completely mechanical. For example all the fields whose type did not change are just copied, new Maybe fields are set to Nothing, new strings are set to "", etc.

It would be nice to provide some tools to reduce boilerplate with Generic. The generic functions should be configurable by type and by field (see generic-random for inspiration).

Allow decoding via an explicit version-number field.

Currently the decoding functions like fromJsonAnyVersion work by trying to decode at each version until the first one succeeds. This is convenient as a default strategy because of its simplicity.
However a better solution would be to rely on an explicit versionNumber field and decode to the target version directly. The implementation will probably require the SV singleton type (currently only on the singletons branch).

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.