License | GPL2 |
---|---|
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Data.DynamicState
Description
This module implements a simple HashMap ConcreteTypeRep Dynamic
Synopsis
- newtype DynamicState = DynamicState {}
- getDyn :: Typeable a => DynamicState -> Maybe a
- setDyn :: Typeable a => DynamicState -> a -> DynamicState
- _dyn :: (Typeable a, Functor f) => a -> (a -> f a) -> DynamicState -> f DynamicState
Documentation
newtype DynamicState Source #
An extensible record, indexed by type
Constructors
DynamicState | |
Fields |
Instances
Monoid DynamicState Source # | |
Defined in Data.DynamicState Methods mempty :: DynamicState # mappend :: DynamicState -> DynamicState -> DynamicState # mconcat :: [DynamicState] -> DynamicState # | |
Semigroup DynamicState Source # | |
Defined in Data.DynamicState Methods (<>) :: DynamicState -> DynamicState -> DynamicState # sconcat :: NonEmpty DynamicState -> DynamicState # stimes :: Integral b => b -> DynamicState -> DynamicState # |
setDyn :: Typeable a => DynamicState -> a -> DynamicState Source #
_dyn :: (Typeable a, Functor f) => a -> (a -> f a) -> DynamicState -> f DynamicState Source #
Lens with default value