Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains a utility for diffing two records.
Since: 0.0.1.0
Synopsis
- diffRecord :: (Record rec, FieldDict Eq rec) => rec -> rec -> [Update rec]
- module Prairie.Update
Documentation
Given two Record
s, this function produces a list of Update
s that
can be performed on the first record such that it will equal the second.
updateRecord
(diffRecord
old new) old == new
A [
can be serialized with Update
rec]ToJSON
, sent over the wire, and
parsed with FromJSON
, so you can efficiently and easily represent
patches to Record
s.
Since: 0.0.1.0
module Prairie.Update