term-rewriting-0.3: Term Rewriting Library
Data.Rewriting.Rule.Type
data Term f v Source #
Constructors
Variable
Function application
Defined in Data.Rewriting.Term.Type
Methods
(==) :: Term f v -> Term f v -> Bool #
(/=) :: Term f v -> Term f v -> Bool #
compare :: Term f v -> Term f v -> Ordering #
(<) :: Term f v -> Term f v -> Bool #
(<=) :: Term f v -> Term f v -> Bool #
(>) :: Term f v -> Term f v -> Bool #
(>=) :: Term f v -> Term f v -> Bool #
max :: Term f v -> Term f v -> Term f v #
min :: Term f v -> Term f v -> Term f v #
showsPrec :: Int -> Term f v -> ShowS #
show :: Term f v -> String #
showList :: [Term f v] -> ShowS #
Defined in Data.Rewriting.Term.Pretty
pretty :: Term f v -> Doc #
prettyList :: [Term f v] -> Doc #
data Rule f v Source #
Rewrite rule with left-hand side and right-hand side.
Fields
Defined in Data.Rewriting.Rule.Type
(==) :: Rule f v -> Rule f v -> Bool #
(/=) :: Rule f v -> Rule f v -> Bool #
compare :: Rule f v -> Rule f v -> Ordering #
(<) :: Rule f v -> Rule f v -> Bool #
(<=) :: Rule f v -> Rule f v -> Bool #
(>) :: Rule f v -> Rule f v -> Bool #
(>=) :: Rule f v -> Rule f v -> Bool #
max :: Rule f v -> Rule f v -> Rule f v #
min :: Rule f v -> Rule f v -> Rule f v #
showsPrec :: Int -> Rule f v -> ShowS #
show :: Rule f v -> String #
showList :: [Rule f v] -> ShowS #
Defined in Data.Rewriting.Rule.Pretty
pretty :: Rule f v -> Doc #
prettyList :: [Rule f v] -> Doc #
map :: (f -> f') -> (v -> v') -> Rule f v -> Rule f' v' Source #
mapSides :: (Term f v -> Term f' v') -> Rule f v -> Rule f' v' Source #