ideas-1.8: Feedback services for intelligent tutoring systems

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

Ideas.Utils.Typeable

Description

Typeable type class, with the IsTypeable data type for witnessing instances

Documentation

data IsTypeable a Source #

Instances
HasTypeable IsTypeable Source # 
Instance details

Defined in Ideas.Utils.Typeable

typeable :: forall a. Typeable a => IsTypeable a Source #

class HasTypeable f where Source #

Minimal complete definition

getTypeable

Methods

getTypeable :: f a -> Maybe (IsTypeable a) Source #

Instances
HasTypeable IsTypeable Source # 
Instance details

Defined in Ideas.Utils.Typeable

HasTypeable Ref Source # 
Instance details

Defined in Ideas.Common.Environment

Methods

getTypeable :: Ref a -> Maybe (IsTypeable a) Source #

HasTypeable Exercise Source # 
Instance details

Defined in Ideas.Common.Exercise

castFrom :: (HasTypeable f, Typeable b) => f a -> a -> Maybe b Source #

castTo :: (HasTypeable f, Typeable a) => f b -> a -> Maybe b Source #

castBetween :: (HasTypeable f, HasTypeable g) => f a -> g b -> a -> Maybe b Source #

gcastFrom :: (HasTypeable f, Typeable b) => f a -> c a -> Maybe (c b) Source #

gcastTo :: (HasTypeable f, Typeable a) => f b -> c a -> Maybe (c b) Source #

gcastBetween :: (HasTypeable f, HasTypeable g) => f a -> g b -> c a -> Maybe (c b) Source #