ideas-1.2: Feedback services for intelligent tutoring systems

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

Ideas.Common.Strategy.Core

Description

The core strategy combinators. This module defines the interal data structure of a strategy, and some utility functions that operate directly on it.

Synopsis

Documentation

data GCore l a Source

A generalized Core expression, not restricted to rules. This makes GCore a (traversable and foldable) functor.

Constructors

(GCore l a) :*: (GCore l a) 
(GCore l a) :|: (GCore l a) 
(GCore l a) :|>: (GCore l a) 
(GCore l a) :%: (GCore l a) 
(GCore l a) :@: (GCore l a) 
Label l (GCore l a) 
Atomic (GCore l a) 
Succeed 
Fail 
Rule a

Generalized constructor (not restricted to rules)

Var Int 
Let (CoreEnv l a) (GCore l a) 

Instances

type Core l a = GCore l (Rule a)Source

Core expression, with rules

coreFix :: (GCore l a -> GCore l a) -> GCore l aSource

noLabels :: GCore l a -> GCore l aSource

substCoreVar :: Int -> GCore l a -> GCore l a -> GCore l aSource