dynamic-state-0.2.2.0: Optionally serializable dynamic state keyed by type

LicenseGPL2
Maintainerzcarterc@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • ScopedTypeVariables
  • DeriveDataTypeable
  • ExplicitForAll

Data.DynamicState

Description

This module implements a simple HashMap ConcreteTypeRep Dynamic

Synopsis

Documentation

newtype DynamicState Source

An extensible record, indexed by type

getDyn :: forall a. Typeable a => DynamicState -> Maybe a Source

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