darcs-2.12.5: a distributed, interactive, smart revision control system

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Rebase.Fixup

Synopsis

Documentation

data RebaseFixup p wX wY where Source #

A single rebase fixup, needed to ensure that the actual patches being stored in the rebase state have the correct context.

Constructors

PrimFixup :: PrimOf p wX wY -> RebaseFixup p wX wY 
NameFixup :: RebaseName p wX wY -> RebaseFixup p wX wY 

Instances

Show2 (PrimOf p) => Show2 (RebaseFixup p) Source # 

Methods

showDict2 :: ShowDict (RebaseFixup p wX wY) Source #

MyEq (PrimOf p) => MyEq (RebaseFixup p) Source # 

Methods

unsafeCompare :: RebaseFixup p wA wB -> RebaseFixup p wC wD -> Bool Source #

(=\/=) :: RebaseFixup p wA wB -> RebaseFixup p wA wC -> EqCheck wB wC Source #

(=/\=) :: RebaseFixup p wA wC -> RebaseFixup p wB wC -> EqCheck wA wB Source #

PrimPatchBase p => Commute (RebaseFixup p) Source # 

Methods

commute :: (RebaseFixup p :> RebaseFixup p) wX wY -> Maybe ((RebaseFixup p :> RebaseFixup p) wX wY) Source #

PatchInspect (PrimOf p) => PatchInspect (RebaseFixup p) Source # 
Invert (PrimOf p) => Invert (RebaseFixup p) Source # 

Methods

invert :: RebaseFixup p wX wY -> RebaseFixup p wY wX Source #

(PrimPatchBase p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseFixup p) Source # 

Associated Types

type ApplyState (RebaseFixup p :: * -> * -> *) :: (* -> *) -> * Source #

Methods

apply :: ApplyMonad (ApplyState (RebaseFixup p)) m => RebaseFixup p wX wY -> m () Source #

PrimPatchBase p => PrimPatchBase (RebaseFixup p) Source # 

Associated Types

type PrimOf (RebaseFixup p :: * -> * -> *) :: * -> * -> * Source #

Effect (RebaseFixup p) Source # 

Methods

effect :: RebaseFixup p wX wY -> FL (PrimOf (RebaseFixup p)) wX wY Source #

effectRL :: RebaseFixup p wX wY -> RL (PrimOf (RebaseFixup p)) wX wY Source #

Show2 (PrimOf p) => Show1 (RebaseFixup p wX) Source # 

Methods

showDict1 :: ShowDict (RebaseFixup p wX wX) Source #

Show2 (PrimOf p) => Show (RebaseFixup p wX wY) Source # 

Methods

showsPrec :: Int -> RebaseFixup p wX wY -> ShowS #

show :: RebaseFixup p wX wY -> String #

showList :: [RebaseFixup p wX wY] -> ShowS #

type ApplyState (RebaseFixup p) Source # 
type PrimOf (RebaseFixup p) Source # 

commuteNamedFixup :: (FromPrim p, Effect p, Commute p, Invert p) => (Named p :> RebaseFixup p) wX wY -> Maybe ((FL (RebaseFixup p) :> Named p) wX wY) Source #

commuteFixupNamed :: (FromPrim p, Effect p, Commute p, Invert p) => (RebaseFixup p :> Named p) wX wY -> Maybe ((Named p :> FL (RebaseFixup p)) wX wY) Source #

commuteNamedFixups :: (FromPrim p, Effect p, Commute p, Invert p) => (Named p :> FL (RebaseFixup p)) wX wY -> Maybe ((FL (RebaseFixup p) :> Named p) wX wY) Source #

flToNamesPrims :: PrimPatchBase p => FL (RebaseFixup p) wX wY -> (FL (RebaseName p) :> FL (PrimOf p)) wX wY Source #

Split a sequence of fixups into names and prims

namedToFixups :: Effect p => Named p wX wY -> FL (RebaseFixup p) wX wY Source #