ContentsIndex
Darcs.Patch.Match
Synopsis
type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool
data Matcher p = MATCH String (MatchFun p)
make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p
apply_matcher :: Matcher p -> PatchInfoAnd p -> Bool
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)
match_pattern :: Patchy p => PatchMatch -> Matcher p
trivial :: Patchy p => MatchFun p
match_parser :: Patchy p => CharParser st (MatchFun p)
submatch :: Patchy p => CharParser st (MatchFun p)
table :: OperatorTable Char st (MatchFun p)
trystring :: String -> CharParser st String
match :: Patchy p => CharParser st (MatchFun p)
createMatchHelper :: (String, String, [String], String -> MatchFun p) -> CharParser st (MatchFun p)
helpOnMatchers :: String
primitiveMatchers :: Patchy p => [(String, String, [String], String -> MatchFun p)]
parens :: CharParser st (MatchFun p) -> CharParser st (MatchFun p)
quoted :: CharParser st String
exactmatch :: Patchy p => String -> MatchFun p
authormatch :: Patchy p => String -> MatchFun p
hashmatch :: Patchy p => String -> MatchFun p
datematch :: Patchy p => String -> MatchFun p
touchmatch :: Patchy p => String -> MatchFun p
mymatch :: Patchy p => String -> MatchFun p
Documentation
type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool
A type for predicates over patches which do not care about contexts
data Matcher p
A Matcher is made of a MatchFun which we will use to match patches and a String representing it.
Constructors
MATCH String (MatchFun p)
show/hide Instances
Show (Matcher p)
make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p
apply_matcher :: Matcher p -> PatchInfoAnd p -> Bool
apply_matcher applies a matcher to a patch.
parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p)
match_pattern :: Patchy p => PatchMatch -> Matcher p
trivial :: Patchy p => MatchFun p
match_parser :: Patchy p => CharParser st (MatchFun p)
submatch :: Patchy p => CharParser st (MatchFun p)
table :: OperatorTable Char st (MatchFun p)
trystring :: String -> CharParser st String
match :: Patchy p => CharParser st (MatchFun p)
createMatchHelper :: (String, String, [String], String -> MatchFun p) -> CharParser st (MatchFun p)
helpOnMatchers :: String
The string that is emitted when the user runs darcs help --match.
primitiveMatchers
:: Patchy p
=> [(String, String, [String], String -> MatchFun p)]keyword (operator), help description, list of examples, matcher function
parens :: CharParser st (MatchFun p) -> CharParser st (MatchFun p)
quoted :: CharParser st String
exactmatch :: Patchy p => String -> MatchFun p
authormatch :: Patchy p => String -> MatchFun p
hashmatch :: Patchy p => String -> MatchFun p
datematch :: Patchy p => String -> MatchFun p
touchmatch :: Patchy p => String -> MatchFun p
mymatch :: Patchy p => String -> MatchFun p
Produced by Haddock version 2.4.2