Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
- stepsremaining :: State a -> Either String Int
- findbuggyrules :: State a -> Context a -> [(Rule (Context a), Location, Environment)]
- allfirsts :: State a -> Either String [(StepInfo a, State a)]
- solution :: Maybe StrategyCfg -> State a -> Either String (Derivation (Rule (Context a), Environment) (Context a))
- onefirst :: State a -> Either String (StepInfo a, State a)
- applicable :: Location -> State a -> [Rule (Context a)]
- allapplications :: State a -> [(Rule (Context a), Location, State a)]
- apply :: Rule (Context a) -> Location -> Environment -> State a -> Either String (State a)
- generate :: StdGen -> Exercise a -> Maybe Difficulty -> Either String (State a)
- create :: Exercise a -> String -> Either String (State a)
- type StepInfo a = (Rule (Context a), Location, Environment)
- tStepInfo :: Type a (StepInfo a)
- exampleDerivations :: Exercise a -> Either String [Derivation (Rule (Context a), Environment) (Context a)]
- recognizeRule :: Exercise a -> Rule (Context a) -> Context a -> Context a -> [(Location, Environment)]
Basic Services
findbuggyrules :: State a -> Context a -> [(Rule (Context a), Location, Environment)] Source
solution :: Maybe StrategyCfg -> State a -> Either String (Derivation (Rule (Context a), Environment) (Context a)) Source
exampleDerivations :: Exercise a -> Either String [Derivation (Rule (Context a), Environment) (Context a)] Source
recognizeRule :: Exercise a -> Rule (Context a) -> Context a -> Context a -> [(Location, Environment)] Source