ideas-1.5: Feedback services for intelligent tutoring systems

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

Ideas.Common.Strategy.StrategyTree

Contents

Description

Representation of a strategy as a cyclic tree with explicit fixed-points. The nodes in the tree are named strategy combinators. The leafs are rules.

Synopsis

StrategyTree type synonym

Declarations (named combinators)

data Decl f Source

Instances

type Combinator f = forall a. f (Process (Rule a)) Source

(.=.) :: IsId n => n -> Combinator f -> Decl f infix 1 Source

Arities

class Arity f where Source

Methods

listify :: f a -> [a] -> Maybe a Source

toArity :: ([a] -> a) -> f a Source

liftIso :: Isomorphism a b -> f a -> f b Source

data Nullary a Source

Constructors

Nullary 

Fields

fromNullary :: a
 

Instances

data Unary a Source

Constructors

Unary 

Fields

fromUnary :: a -> a
 

Instances

data Binary a Source

Constructors

Binary 

Fields

fromBinary :: a -> a -> a
 

Instances

data Nary a Source

Constructors

Nary 

Fields

fromNary :: [a] -> a
 

Instances