incremental: incremental update library

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Generic interface for incremental updates


[Skip to Readme]

Properties

Versions 0, 0.1, 0.1.1, 0.2, 0.2, 0.3, 0.3.1
Change log None available
Dependencies aeson, base (>=4.8 && <5), bytestring, containers, deepseq, semigroups, text [details]
License BSD-3-Clause
Copyright 2020 Fumiaki Kinoshita
Author Fumiaki Kinoshita
Maintainer fumiexcel@gmail.com
Category Data
Home page https://github.com/fumieval/incremental#readme
Source repo head: git clone https://github.com/fumieval/incremental
Uploaded by FumiakiKinoshita at 2020-03-14T03:04:53Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for incremental-0.2

[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)