SkillAgentSearch skills...

Incremental

Type class for patch and diff

Install / Use

/learn @fumieval/Incremental
About this skill

Quality Score

0/100

Supported Platforms

Universal

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

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated4y ago
Forks1

Languages

Haskell

Security Score

75/100

Audited on Nov 20, 2021

No findings