ideas-1.6: Feedback services for intelligent tutoring systems

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Ideas.Common.Rewriting.RewriteRule

Contents

Description

 

Synopsis

Supporting type class

class Different a where Source #

Minimal complete definition

different

Methods

different :: (a, a) Source #

Instances

Rewrite rules and specs

data RuleSpec a Source #

Constructors

a :~> a infixl 1 

Instances

Functor RuleSpec Source # 

Methods

fmap :: (a -> b) -> RuleSpec a -> RuleSpec b #

(<$) :: a -> RuleSpec b -> RuleSpec a #

Show a => Show (RuleSpec a) Source # 

Methods

showsPrec :: Int -> RuleSpec a -> ShowS #

show :: RuleSpec a -> String #

showList :: [RuleSpec a] -> ShowS #

(IsTerm a, Show a) => RuleBuilder (RuleSpec a) a Source # 

Compiling rewrite rules

makeRewriteRule :: (IsId n, RuleBuilder f a) => n -> f -> RewriteRule a Source #

class (IsTerm a, Show a) => RuleBuilder t a | t -> a where Source #

Minimal complete definition

buildRuleSpec

Instances

(IsTerm a, Show a) => RuleBuilder (RuleSpec a) a Source # 
(Different a, RuleBuilder t b) => RuleBuilder (a -> t) b Source # 

Methods

buildRuleSpec :: Int -> (a -> t) -> RuleSpec Term Source #

Using rewrite rules