ideas-1.2: Feedback services for intelligent tutoring systems

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

Ideas.Encoding.Evaluator

Description

 

Synopsis

Documentation

simpleEncoder :: (a -> b) -> EncoderState st a bSource

maybeEncoder :: (a -> Maybe b) -> EncoderState st a bSource

encoderFor :: (a -> EncoderState st a b) -> EncoderState st a bSource

encoderStateFor :: (st -> a -> EncoderState st a b) -> EncoderState st a bSource

runEncoderStateM :: Monad m => EncoderState st a b -> st -> a -> m bSource

(//) :: EncoderState st a c -> a -> EncoderState st b cSource

withState :: (st -> b) -> EncoderState st a bSource

pure :: Applicative f => forall a. a -> f a

Lift a value.

(<$>) :: Functor f => (a -> b) -> f a -> f b

An infix synonym for fmap.

(<**>) :: Applicative f => f a -> f (a -> b) -> f b

A variant of <*> with the arguments reversed.

liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c

Lift a binary function to actions.

data Evaluator a b whereSource

Constructors

Evaluator :: (TypedValue (Type a) -> IO b) -> (forall t. Type a t -> IO t) -> Evaluator a b