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

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Prim.V1.Core

Synopsis

Documentation

data Prim wX wY where Source

Constructors

Move :: !FileName -> !FileName -> Prim wX wY 
DP :: !FileName -> !(DirPatchType wX wY) -> Prim wX wY 
FP :: !FileName -> !(FilePatchType wX wY) -> Prim wX wY 
ChangePref :: !String -> !String -> !String -> Prim wX wY 

data DirPatchType wX wY Source

Constructors

RmDir 
AddDir 

isIdentity :: Prim wX wY -> EqCheck wX wY Source

comparePrim :: Prim wX wY -> Prim wW wZ -> Ordering Source

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.