transformations-0.1.1.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 

Instances

Functor (PF a) => Functor (WithRef a) 

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

class HasRef a whereSource

Associated Types

type RefRep a Source