darcs-beta-2.4.98.5: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.Patch.Match
Synopsis
data PatchMatch
data Matcher p
type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool
patchMatch :: String -> PatchMatch
matchPattern :: Patchy p => PatchMatch -> Matcher p
applyMatcher :: Matcher p -> PatchInfoAnd p -> Bool
makeMatcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)
matchParser :: Patchy p => CharParser st (MatchFun p)
helpOnMatchers :: String
Documentation
data PatchMatch Source
show/hide Instances
data Matcher p Source
A Matcher is made of a MatchFun which we will use to match patches and a String representing it.
show/hide Instances
type MatchFun p = Sealed2 (PatchInfoAnd p) -> BoolSource
A type for predicates over patches which do not care about contexts
patchMatch :: String -> PatchMatchSource
matchPattern :: Patchy p => PatchMatch -> Matcher pSource
applyMatcher :: Matcher p -> PatchInfoAnd p -> BoolSource
applyMatcher applies a matcher to a patch.
makeMatcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher pSource
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)Source
matchParser :: Patchy p => CharParser st (MatchFun p)Source
helpOnMatchers :: StringSource
The string that is emitted when the user runs darcs help --match.
Produced by Haddock version 2.6.1