| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Prairie.Diff
Description
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
Arguments
| :: (Record rec, FieldDict Eq rec) | |
| => rec | The old record. |
| -> rec | The new record. |
| -> [Update rec] |
Given two Records, this function produces a list of Updates that
can be performed on the first record such that it will equal the second.
updateRecord(diffRecordold 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 Records.
Since: 0.0.1.0
module Prairie.Update