darcs-2.1.98.2: a distributed, interactive, smart revision control systemSource codeContentsIndex
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 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
patch_match :: String -> PatchMatchSource
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
Produced by Haddock version 2.4.2