@hackage incremental0.3
incremental update library
Installation
Dependencies (7)
- aeson
- base >=4.8 && <5
- bytestring
- containers
- deepseq
- semigroups Show all…
Dependents (2)
@hackage/acme-everything, @hackage/extensible
incremental: incremental update interface
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)