transformations-0.1.0.0: Generic representation of tree transformations

Safe HaskellNone

Generics.Regular.Transformations.Explicit

Synopsis

Documentation

diff :: forall a. Transform a => a -> a -> Transformation aSource

Find a set of edits to transform the first into the second tree

apply :: Transform a => Transformation a -> a -> Maybe aSource

Apply the edits to the given tree

data WithRef a b Source

Constructors

InR (PF a b) 
Ref Path 

type Path = [Int]Source

class (Regular a, Children (PF a), CountI (PF a), Functor (PF a), SEq (PF a), ExtractN (PF a), MapN (PF a), GMap (PF a), GOrd (PF a), Eq (PF a)) => Transform a Source