Safe Haskell | Safe-Infered |
---|
Darcs.Patch.Prim.V1.Core
- data Prim where
- data DirPatchType
- data FilePatchType
- = RmFile
- | AddFile
- | Hunk !Int [ByteString] [ByteString]
- | TokReplace !String !String !String
- | Binary ByteString ByteString
- isIdentity :: Prim -> EqCheck
- comparePrim :: Prim -> Prim -> Ordering
Documentation
data Prim where
Constructors
Move :: !FileName -> !FileName -> Prim | |
DP :: !FileName -> !DirPatchType -> Prim | |
FP :: !FileName -> !FilePatchType -> Prim | |
ChangePref :: !String -> !String -> !String -> Prim |
Instances
data DirPatchType
Instances
data FilePatchType
Constructors
RmFile | |
AddFile | |
Hunk !Int [ByteString] [ByteString] | |
TokReplace !String !String !String | |
Binary ByteString ByteString |
isIdentity :: Prim -> EqCheck
comparePrim :: Prim -> Prim -> Ordering
comparePrim
p1 p2
is used to provide an arbitrary ordering between
p1
and p2
. Basically, identical patches are equal and
Move < DP < FP < ChangePref
.
Everything else is compared in dictionary order of its arguments.