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

Safe Haskell | None
Language | Haskell2010

Darcs.Patch.FileHunk

# Documentation

data FileHunk oid wX wY #

Constructors

FileHunk oid !Int [ByteString] [ByteString] |

#### Instances

Instances details

Invert (FileHunk oid) # |
Instance details Defined in Darcs.Patch.FileHunk Methods invert :: FileHunk oid wX wY -> FileHunk oid wY wX #

class IsHunk (p :: Type -> Type -> Type) where #

Methods

isHunk :: p wX wY -> Maybe (FileHunk (ObjectIdOfPatch p) wX wY) #

#### Instances

Instances details

IsHunk Prim # |
Instance details Defined in Darcs.Patch.Prim.FileUUID.Core Methods isHunk :: Prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch Prim) wX wY) #
ObjectIdOf (ApplyState Prim) ~ AnchoredPath => IsHunk Prim # |
Instance details Defined in Darcs.Patch.Prim.V1.Core Methods isHunk :: Prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch Prim) wX wY) #
IsHunk Prim # |
Instance details Defined in Darcs.Patch.V1.Prim Methods isHunk :: Prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch Prim) wX wY) #
IsHunk Prim # |
Instance details Defined in Darcs.Patch.V2.Prim Methods isHunk :: Prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch Prim) wX wY) #
IsHunk (Named p) # |
Instance details Defined in Darcs.Patch.Named Methods isHunk :: Named p wX wY -> Maybe (FileHunk (ObjectIdOfPatch (Named p)) wX wY) #
IsHunk (PatchInfoAndG p) # |
Instance details Defined in Darcs.Patch.PatchInfoAnd Methods isHunk :: PatchInfoAndG p wX wY -> Maybe (FileHunk (ObjectIdOfPatch (PatchInfoAndG p)) wX wY) #
IsHunk (RebaseChange prim) # |
Instance details Defined in Darcs.Patch.Rebase.Change Methods isHunk :: RebaseChange prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch (RebaseChange prim)) wX wY) #
(PrimPatch prim, ApplyState prim ~ ApplyState (RepoPatchV1 prim)) => IsHunk (RepoPatchV1 prim) # |
Instance details Defined in Darcs.Patch.V1.Commute Methods isHunk :: RepoPatchV1 prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch (RepoPatchV1 prim)) wX wY) #
IsHunk prim => IsHunk (RepoPatchV2 prim) # |
Instance details Defined in Darcs.Patch.V2.RepoPatch Methods isHunk :: RepoPatchV2 prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch (RepoPatchV2 prim)) wX wY) #
IsHunk p => IsHunk (PrimWithName name p) # |
Instance details Defined in Darcs.Patch.Prim.WithName Methods isHunk :: PrimWithName name p wX wY -> Maybe (FileHunk (ObjectIdOfPatch (PrimWithName name p)) wX wY) #
IsHunk prim => IsHunk (RepoPatchV3 name prim) # |
Instance details Defined in Darcs.Patch.V3.Core Methods isHunk :: RepoPatchV3 name prim wX wY -> Maybe (FileHunk (ObjectIdOfPatch (RepoPatchV3 name prim)) wX wY) #

showFileHunk :: ObjectId oid => FileNameFormat -> FileHunk oid wX wY -> Doc #

showContextFileHunk :: ObjectId oid => FileNameFormat -> [ByteString] -> FileHunk oid wB wC -> [ByteString] -> Doc #