Module

Oak.Debug

Package
purescript-oak-debug
Repository
ehrenmurdick/purescript-oak-debug

#DebugModel Source

type DebugModel emsg emodel = { active :: Boolean, emodel :: emodel, init :: emodel, msgs :: Array emsg, next :: emsg -> emodel -> (emsg -> Effect Unit) -> Effect Unit, update :: emsg -> emodel -> emodel, view :: emodel -> Html emsg }

#DebugMsg Source

data DebugMsg emsg

Constructors

#view Source

view :: forall emodel emsg. Show emsg => DebugModel emsg emodel -> Html (DebugMsg emsg)

#showMsg Source

showMsg :: forall emsg. Show emsg => Int -> emsg -> Html (DebugMsg emsg)

#update Source

update :: forall emodel emsg. DebugMsg emsg -> DebugModel emsg emodel -> DebugModel emsg emodel

#next Source

next :: forall emodel emsg. DebugMsg emsg -> DebugModel emsg emodel -> (DebugMsg emsg -> Effect Unit) -> Effect Unit

#debugApp Source

debugApp :: forall emodel emsg. Show emsg => App emsg emodel -> App (DebugMsg emsg) (DebugModel emsg emodel)