- 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
A Matcher
is made of a MatchFun
which we will use to match
patches and a String
representing it.
type MatchFun p = Sealed2 (PatchInfoAnd p) -> BoolSource
A type for predicates over patches which do not care about contexts
match_pattern :: Patchy p => PatchMatch -> Matcher pSource
apply_matcher :: Matcher p -> PatchInfoAnd p -> BoolSource
apply_matcher
applies a matcher to a patch.
make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher pSource
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)Source
match_parser :: Patchy p => CharParser st (MatchFun p)Source
helpOnMatchers :: StringSource
The string that is emitted when the user runs darcs help --match
.