Module
Grain.Class
- Package
- purescript-grain
- Repository
- purescript-grain/purescript-grain
#Grain Source
class Grain :: (Type -> Type) -> Type -> Constraint
class Grain p a where
Members
initialState :: p a -> Effect a
typeRefOf :: p a -> TypeRef
which :: forall b. p a -> { global :: b, local :: b } -> b
Instances
(GlobalGrain a) => Grain GProxy a
(KeyedGlobalGrain k a) => Grain (KGProxy k) a
(LocalGrain a) => Grain LProxy a
#NonKeyedGrain Source
class NonKeyedGrain :: (Type -> Type) -> Type -> Constraint
class (Grain p a) <= NonKeyedGrain p a
Instances
(GlobalGrain a) => NonKeyedGrain GProxy a
(LocalGrain a) => NonKeyedGrain LProxy a
- Modules
- Grain
- Grain.
Class - Grain.
Class. GProxy - Grain.
Class. KGProxy - Grain.
Class. LProxy - Grain.
Internal. Diff - Grain.
Internal. Element - Grain.
Internal. Emitter - Grain.
Internal. Handler - Grain.
Internal. MArray - Grain.
Internal. MMap - Grain.
Internal. MObject - Grain.
Internal. Prop - Grain.
Internal. PropDiff - Grain.
Internal. Ref - Grain.
Internal. SpecialProp - Grain.
Internal. Store - Grain.
Internal. Styler - Grain.
Internal. Util - Grain.
Markup - Grain.
Markup. Element - Grain.
Markup. Handler - Grain.
Markup. Prop - Grain.
TypeRef - Grain.
UI