| License | GPL2 |
|---|---|
| Maintainer | zcarterc@gmail.com |
| 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 :: forall a. Typeable a => DynamicState -> Maybe a
- setDyn :: forall a. 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
| Semigroup DynamicState Source # | |
Defined in Data.DynamicState Methods (<>) :: DynamicState -> DynamicState -> DynamicState # sconcat :: NonEmpty DynamicState -> DynamicState # stimes :: Integral b => b -> DynamicState -> DynamicState # | |
| Monoid DynamicState Source # | |
Defined in Data.DynamicState Methods mempty :: DynamicState # mappend :: DynamicState -> DynamicState -> DynamicState # mconcat :: [DynamicState] -> DynamicState # | |
setDyn :: forall a. Typeable a => DynamicState -> a -> DynamicState Source #
_dyn :: (Typeable a, Functor f) => a -> (a -> f a) -> DynamicState -> f DynamicState Source #
Lens with default value