| darcs-2.4.4: a distributed, interactive, smart revision control system | Source code | Contents | Index

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

Instances

Eq PatchMatch
Show PatchMatch

data Matcher p | Source

A `Matcher` is made of a `MatchFun` which we will use to match patches and a `String` representing it.
Instances

Show (Matcher p)

type MatchFun p = Sealed2 (PatchInfoAnd p) -> Bool | Source

A type for predicates over patches which do not care about contexts

patch_match :: String -> PatchMatch | Source

match_pattern :: Patchy p => PatchMatch -> Matcher p | Source

apply_matcher :: Matcher p -> PatchInfoAnd p -> Bool | Source

`apply_matcher` applies a matcher to a patch.

make_matcher :: String -> (Sealed2 (PatchInfoAnd p) -> Bool) -> Matcher p | Source

parseMatch :: Patchy p => PatchMatch -> Either String (MatchFun p) | Source

match_parser :: Patchy p => CharParser st (MatchFun p) | Source

helpOnMatchers :: String | Source

The string that is emitted when the user runs `darcs help --match`.
Produced by Haddock version 2.4.2