Popularity
5.5
Declining
Activity
0.0
-
7
4
1

Monthly Downloads: 63
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data     Incremental    
Latest version: v0.3
Add another 'incremental' Package

README

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) ≡ [email protected]
  patch :: a -> Delta a -> a
  -- | returns 'Nothing' when there is no update
  diff :: a -> a -> Maybe (Delta a)