rest-rewrite-0.4.3: Rewriting library with online termination checking
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.REST.RewriteRule

Synopsis

Documentation

class RewriteRule m rule term where Source #

A class for datatypes that can be used as rewrite rules

Methods

apply :: term -> rule -> m (HashSet term) Source #

apply term rule returns the set of resulting terms that can be generated from term using rule. Multiple terms are possible if the rule applies to multiple subterms. The result is embedded in a computation context m; this enables support for SMT-based conditional rewriting, for example.

Instances

Instances details
Monad m => RewriteRule m Rewrite RuntimeTerm Source # 
Instance details

Defined in Language.REST.Internal.Rewrite