darcs-2.4: a distributed, interactive, smart revision control systemContentsIndex
Darcs.Patch.Match
Synopsis
data PatchMatch
data Matcher p
type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool
patch_match :: String -> PatchMatch
match_pattern :: Patchy p => PatchMatch -> Matcher p
apply_matcher :: Matcher p -> PatchInfoAnd p -> Bool
make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)
match_parser :: Patchy p => CharParser st (MatchFun p)
helpOnMatchers :: String
Documentation
data PatchMatch
show/hide Instances
data Matcher p
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) -> Bool
A type for predicates over patches which do not care about contexts
patch_match :: String -> PatchMatch
match_pattern :: Patchy p => PatchMatch -> Matcher p
apply_matcher :: Matcher p -> PatchInfoAnd p -> Bool
apply_matcher applies a matcher to a patch.
make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)
match_parser :: Patchy p => CharParser st (MatchFun p)
helpOnMatchers :: String
The string that is emitted when the user runs darcs help --match.
Produced by Haddock version 2.6.0