- data Conf
- as :: a
- valueForKey :: Typeable a => String -> Conf -> a -> Maybe a
- (<@>) :: Typeable a => String -> a -> (String, Dynamic)
- keys :: Conf -> [String]
- (!) :: Typeable a => Conf -> String -> a
- toConf :: [(String, Dynamic)] -> Conf
- toDyn :: Typeable a => a -> Dynamic
- toMap :: Conf -> Map String Dynamic
Documentation
toDyn :: Typeable a => a -> Dynamic
Converts an arbitrary value into an object of type Dynamic
.
The type of the object must be an instance of Typeable
, which
ensures that only monomorphically-typed objects may be converted to
Dynamic
. To convert a polymorphic object into Dynamic
, give it
a monomorphic type signature. For example:
toDyn (id :: Int -> Int)