ideas-1.2: Feedback services for intelligent tutoring systems

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

Ideas.Common.Environment

Contents

Description

References, bindings, and heterogenous environments

Synopsis

Reference

data Ref a Source

A data type for references (without a value)

Instances

Eq (Ref a) 
Show (Ref a) 
HasId (Ref a) 

class (IsTerm a, Typeable a, Show a, Read a) => Reference a whereSource

A type class for types as references

Methods

makeRef :: IsId n => n -> Ref aSource

makeRefList :: IsId n => n -> Ref [a]Source

Binding

Heterogeneous environment

class HasEnvironment env whereSource

Methods

environment :: env -> EnvironmentSource

setEnvironment :: Environment -> env -> envSource

deleteRef :: Ref a -> env -> envSource

insertRef :: Typeable a => Ref a -> a -> env -> envSource

changeRef :: Typeable a => Ref a -> (a -> a) -> env -> envSource

class HasRefs a whereSource

Methods

getRefs :: a -> [Some Ref]Source

allRefs :: a -> [Some Ref]Source

getRefIds :: a -> [Id]Source

(?) :: (HasEnvironment env, Typeable a) => Ref a -> env -> Maybe aSource