Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Class that will be used when diffing values. It ought to be instantiated
with our vendored tree-diff
(see Test.StateMachine.Diffing.TreeDiff), or
other akin implementations.
Documentation
class CanDiff x where Source #
Expressions that will be diffed
What will the diff of two AnExpr
s result in
toDiff :: x -> AnExpr x Source #
Extract the expression from the data
exprDiff :: Proxy x -> AnExpr x -> AnExpr x -> ADiff x Source #
Diff two expressions
diffToDocCompact :: Proxy x -> ADiff x -> Doc Source #
Output a diff in compact form
diffToDoc :: Proxy x -> ADiff x -> Doc Source #
Output a diff
exprToDoc :: Proxy x -> AnExpr x -> Doc Source #
Output an expression