incremental: incremental update library

[ bsd3, data, library ] [ Propose Tags ]

Generic interface for incremental updates

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0, 0.1, 0.1.1, 0.2, 0.3, 0.3.1
Change log
Dependencies aeson, base (>=4.8 && <5), bytestring, containers, deepseq, semigroups, text [details]
License BSD-3-Clause
Copyright 2020 Fumiaki Kinoshita
Author Fumiaki Kinoshita
Category Data
Home page
Source repo head: git clone
Uploaded by FumiakiKinoshita at 2020-09-19T05:48:59Z
Distributions LTSHaskell:0.3.1, NixOS:0.3.1, Stackage:0.3.1
Reverse Dependencies 2 direct, 18 indirect [details]
Downloads 3107 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-09-19 [all 1 reports]

Readme for incremental-0.3.1

[back to package description]

incremental: incremental update interface

Hackage Haskell CI Discord

This package provides a typeclass for incremental updates and diffing.

class Incremental a where
  -- | the difference type
  type Delta a
  -- | @'maybe' a ('patch' a) ('diff' b a) ≡ b@
  patch :: a -> Delta a -> a
  -- | returns 'Nothing' when there is no update
  diff :: a -> a -> Maybe (Delta a)