| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Darcs.Patch.Rebase.NameHack
Documentation
When commuting a Normal patch past a Suspended one, we need to adjust the
internals of the Suspended one to take account of the effect of the Normal patch.
This includes the name of the Normal patch - but the layering is such that we
are actually commuting patches of type Named (Rebasing p) - i.e. Rebasing p
doesn't actually contain the name. We therefore need to add a hook to the Commute
instances for Named which Rebasing can then implement.
There is a default so that other patch types only need to declare the instance.
Minimal complete definition
Nothing
Methods
nameHack :: DiffAlgorithm -> Maybe (PatchInfo -> FL p wX wY -> FL p wX wY, PatchInfo -> FL p wW wZ -> FL p wW wZ) Source
Instances
| NameHack DummyPatch | |
| NameHack (Patch prim) | |
| NameHack (RealPatch prim) | |
| (PrimPatchBase p, FromPrim p, Effect p, Commute p) => NameHack (Rebasing p) | |
| NameHack (RebaseChange p) |