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

Safe HaskellNone
LanguageHaskell98

Darcs.Patch.Match

Synopsis

Documentation

data Matcher p

A Matcher is made of a MatchFun which we will use to match patches and a String representing it.

Instances

type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool

A type for predicates over patches which do not care about contexts

applyMatcher :: Matcher p -> PatchInfoAnd p x y -> Bool

applyMatcher applies a matcher to a patch.

helpOnMatchers :: String

The string that is emitted when the user runs darcs help --match.