Darcs.Patch.Prim.V1
data Prim wX wY Source #
Defined in Darcs.Patch.Annotate
Methods
annotate :: Prim wX wY -> AnnotatedM () Source #
Defined in Darcs.Patch.Prim.V1.Apply
Associated Types
type ApplyState Prim :: (Type -> Type) -> Type Source #
apply :: ApplyMonad (ApplyState Prim) m => Prim wX wY -> m () Source #
unapply :: ApplyMonad (ApplyState Prim) m => Prim wX wY -> m () Source #
Defined in Darcs.Patch.Prim.V1.Commute
commute :: (Prim :> Prim) wX wY -> Maybe ((Prim :> Prim) wX wY) Source #
Defined in Darcs.Patch.Prim.V1.Core
patchDebugDummy :: Prim wX wY -> () Source #
isHunk :: Prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch Prim) wX wY) Source #
listTouchedFiles :: Prim wX wY -> [AnchoredPath] Source #
hunkMatches :: (ByteString -> Bool) -> Prim wX wY -> Bool Source #
invert :: Prim wX wY -> Prim wY wX Source #
cleanMerge :: (Prim :\/: Prim) wX wY -> Maybe ((Prim :/\: Prim) wX wY) Source #
applyPrimFL :: ApplyMonad (ApplyState Prim) m => FL Prim wX wY -> m () Source #
Defined in Darcs.Patch.Prim.V1.Coalesce
tryToShrink :: FL Prim wX wY -> Maybe (FL Prim wX wY) Source #
sortCoalesceFL :: FL Prim wX wY -> FL Prim wX wY Source #
primCoalesce :: Prim wX wY -> Prim wY wZ -> Maybe (Prim wX wZ) Source #
isIdentity :: Prim wX wY -> EqCheck wX wY Source #
comparePrim :: Prim wA wB -> Prim wC wD -> Ordering Source #
addfile :: AnchoredPath -> Prim wX wY Source #
rmfile :: AnchoredPath -> Prim wX wY Source #
adddir :: AnchoredPath -> Prim wX wY Source #
rmdir :: AnchoredPath -> Prim wX wY Source #
move :: AnchoredPath -> AnchoredPath -> Prim wX wY Source #
changepref :: String -> String -> String -> Prim wX wY Source #
hunk :: AnchoredPath -> Int -> [ByteString] -> [ByteString] -> Prim wX wY Source #
tokreplace :: AnchoredPath -> String -> String -> String -> Prim wX wY Source #
binary :: AnchoredPath -> ByteString -> ByteString -> Prim wX wY Source #
primFromHunk :: FileHunk (ObjectIdOfPatch Prim) wX wY -> Prim wX wY Source #
Defined in Darcs.Patch.Prim.V1.Details
summarizePrim :: Prim wX wY -> [SummDetail] Source #
Defined in Darcs.Patch.Prim.V1.Mangle
mangleUnravelled :: Unravelled Prim wX -> Maybe (Mangled Prim wX) Source #
Defined in Darcs.Patch.Prim.V1.Read
readPrim :: FileNameFormat -> Parser (Sealed (Prim wX)) Source #
Defined in Darcs.Patch.Prim.V1.Show
showPrim :: FileNameFormat -> Prim wA wB -> Doc Source #
showPrimWithContextAndApply :: ApplyMonad (ApplyState Prim) m => FileNameFormat -> Prim wA wB -> m Doc Source #
primIsSiftable :: Prim wX wY -> Bool Source #
applyAndTryToFixFL :: ApplyMonad (ApplyState Prim) m => Prim wX wY -> m (Maybe (String, FL Prim wX wY)) Source #
unsafeCompare :: Prim wA wB -> Prim wC wD -> Bool Source #
(=\/=) :: Prim wA wB -> Prim wA wC -> EqCheck wB wC Source #
(=/\=) :: Prim wA wC -> Prim wB wC -> EqCheck wA wB Source #
showDict2 :: ShowDict (Prim wX wY) Source #
showDict1 :: Dict (Show (Prim wX wX0)) Source #
showsPrec :: Int -> Prim wX wY -> ShowS #
show :: Prim wX wY -> String #
showList :: [Prim wX wY] -> ShowS #
(==) :: Prim wX wY -> Prim wX wY -> Bool #
(/=) :: Prim wX wY -> Prim wX wY -> Bool #