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

newtype DynamicState Source #

An extensible record, indexed by type

Constructors

DynamicState 

Instances

Instances details
Semigroup DynamicState Source # 
Instance details

Defined in Data.DynamicState

Monoid DynamicState Source # 
Instance details

Defined in Data.DynamicState

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