Module

Grain.Class.KGProxy

Package
purescript-grain
Repository
purescript-grain/purescript-grain

#KGProxy Source

data KGProxy k a

Constructors

#GrainKey Source

class GrainKey a  where

Representation of key type for keyed global state.

This class's instances can be key for keyed global state.

Members

Instances

#KeyedGlobalGrain Source

class (GrainKey k) <= KeyedGlobalGrain k a | a -> k where

Representation of a partial state of application state.

You can use this to define global state with key for dynamic items.

The first parameter is a type of key for each item, and the second parameter is a type of item.

TypeRef is used as state key internally for uniqueness.

Members