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 #

An extensible record, indexed by type

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 #

Lens with default value