Module

Cherry

Package
purescript-cherry
Repository
oreshinya/purescript-cherry

#CHERRY Source

data CHERRY :: Effect

#AppEffects Source

type AppEffects e = (cherry :: CHERRY, console :: CONSOLE, dom :: DOM, history :: HISTORY | e)

#View Source

type View e s = s -> VNode e

#Subscription Source

type Subscription e = Eff e Unit

#Config Source

newtype Config e s

Constructors

#select Source

select :: forall s e. (s -> s) -> Eff (cherry :: CHERRY | e) s

#reduce Source

reduce :: forall s e. (s -> s) -> Eff (cherry :: CHERRY | e) Unit

#app Source

app :: forall s e. Config (AppEffects e) s -> Eff (AppEffects e) Unit

#router Source

router :: forall e. (String -> Eff (dom :: DOM | e) Unit) -> Eff (dom :: DOM | e) Unit

#navigateTo Source

navigateTo :: forall e. String -> Eff (dom :: DOM, history :: HISTORY | e) Unit

#redirectTo Source

redirectTo :: forall e. String -> Eff (dom :: DOM, history :: HISTORY | e) Unit

#goForward Source

goForward :: forall e. Eff (dom :: DOM, history :: HISTORY | e) Unit

#goBack Source

goBack :: forall e. Eff (dom :: DOM, history :: HISTORY | e) Unit
Modules
Cherry