uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellNone
LanguageHaskell2010

Util.Dynamics

Description

A wrapper for the new GHC (and Hugs) Dynamic module. The main improvement over the original Dynamic module is that we provide flavours of TypeableXXXX for kinds with arguments other than *, a feature used by DisplayView.

Synopsis

Documentation

class Typeable (a :: k) #

The class Typeable allows a concrete representation of a type to be calculated.

Minimal complete definition

typeRep#

type TypeRep = SomeTypeRep #

A quantified type representation.

toDyn :: Typeable a => a -> Dyn Source #

fromDynamicWE :: Typeable a => Dyn -> WithError a Source #

Like fromDynamic but provides an error message indicating what types are getting confused.

coerce :: Typeable a => Dyn -> a Source #

dynCast :: (Typeable a, Typeable b) => String -> a -> b Source #