Module

Halogen.Helix.Hooks

Package
purescript-halogen-helix
Repository
katsujukou/purescript-halogen-helix

#UseHelix Source

data UseHelix :: Type -> HookTypedata UseHelix t0

#UseHelixHook Source

type UseHelixHook :: Type -> Type -> Type -> (Type -> Type) -> Typetype UseHelixHook state action part m = (state -> part) -> Hook m (UseHelix state) (part /\ (HelixContext' part action m))

#makeStore Source

makeStore :: forall state action part m. MonadEffect m => Eq part => String -> (state -> action -> state) -> state -> HelixMiddleware' state action m -> UseHelixHook state action part m

#makeStore' Source

makeStore' :: forall state action part m. MonadEffect m => Eq part => String -> (state -> action -> state) -> state -> UseHelixHook state action part m

Re-exports from Halogen.Helix.Types

#HelixMiddleware' Source

type HelixMiddleware' :: Type -> Type -> (Type -> Type) -> Typetype HelixMiddleware' s a m = HelixMiddleware s a (HookM m)

#HelixContext' Source

type HelixContext' :: Type -> Type -> (Type -> Type) -> Typetype HelixContext' s a m = HelixContext s a (HookM m)