ideas-1.8: Feedback services for intelligent tutoring systems

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

Ideas.Service.State

Contents

Description

The information maintained for a learner trying to complete a derivation.

Synopsis

Exercise state

data State a Source #

Instances
Show (State a) Source # 
Instance details

Defined in Ideas.Service.State

Methods

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

show :: State a -> String #

showList :: [State a] -> ShowS #

HasId (State a) Source # 
Instance details

Defined in Ideas.Service.State

Methods

getId :: State a -> Id Source #

changeId :: (Id -> Id) -> State a -> State a Source #

HasEnvironment (State a) Source # 
Instance details

Defined in Ideas.Service.State

Methods

environment :: State a -> Environment Source #

setEnvironment :: Environment -> State a -> State a Source #

deleteRef :: Ref a0 -> State a -> State a Source #

insertRef :: Ref a0 -> a0 -> State a -> State a Source #

changeRef :: Ref a0 -> (a0 -> a0) -> State a -> State a Source #

Firsts (State a) Source # 
Instance details

Defined in Ideas.Service.State

Associated Types

type Elem (State a) :: * Source #

Methods

ready :: State a -> Bool Source #

firsts :: State a -> [(Elem (State a), State a)] Source #

type Elem (State a) Source # 
Instance details

Defined in Ideas.Service.State

type Elem (State a) = (Rule (Context a), Context a, Environment)

startState :: QCGen -> Exercise a -> Maybe String -> a -> State a Source #

firsts :: Firsts s => s -> [(Elem s, s)] Source #

The firsts set.