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

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

Data.DynamicState

Description

This module implements a simple HashMap ConcreteTypeRep Dynamic

Synopsis

Documentation

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