phino-0.0.0: Command-Line Manipulator of 𝜑-Calculus Expressions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Matcher

Documentation

data MetaValue Source #

Instances

Instances details
Show MetaValue Source # 
Instance details

Defined in Matcher

Eq MetaValue Source # 
Instance details

Defined in Matcher

data Meta Source #

Constructors

Named Text 
Anon Slot 

Instances

Instances details
Show Meta Source # 
Instance details

Defined in Matcher

Methods

showsPrec :: Int -> Meta -> ShowS #

show :: Meta -> String #

showList :: [Meta] -> ShowS #

Eq Meta Source # 
Instance details

Defined in Matcher

Methods

(==) :: Meta -> Meta -> Bool #

(/=) :: Meta -> Meta -> Bool #

Ord Meta Source # 
Instance details

Defined in Matcher

Methods

compare :: Meta -> Meta -> Ordering #

(<) :: Meta -> Meta -> Bool #

(<=) :: Meta -> Meta -> Bool #

(>) :: Meta -> Meta -> Bool #

(>=) :: Meta -> Meta -> Bool #

max :: Meta -> Meta -> Meta #

min :: Meta -> Meta -> Meta #

newtype Subst Source #

Constructors

Subst (Map Meta MetaValue) 

Instances

Instances details
Show Subst Source # 
Instance details

Defined in Matcher

Methods

showsPrec :: Int -> Subst -> ShowS #

show :: Subst -> String #

showList :: [Subst] -> ShowS #

Eq Subst Source # 
Instance details

Defined in Matcher

Methods

(==) :: Subst -> Subst -> Bool #

(/=) :: Subst -> Subst -> Bool #

sites :: forall a. Bool -> (Expression -> [a]) -> Expression -> [(Expression, a)] Source #

hits :: forall a. [(Int, Bool, Maybe Expression -> Expression -> [a])] -> Maybe Expression -> Expression -> [Int] Source #