miso-action-logger-0.1.0.1: Miso state transition logger

Copyright(C) 2019 Sviat Chumakov
LicenseBSD3-style (see the file LICENSE)
MaintainerSviat Chumakov <svchumakov@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

MisoActionLogger

Description

 
Synopsis

Documentation

mkActionLogger :: (Show action, ToJSON model) => ActionLoggerOptions action model -> (action -> model -> Effect action model) -> action -> model -> Effect action model Source #

Create an action logger with custom settings. Returns a logger that wraps around your update function when you construct a Miso app.

defaultActionLogger :: (Show action, ToJSON model) => (action -> model -> Effect action model) -> action -> model -> Effect action model Source #

Action logger with default settings. Wraps around your update function when you construct a Miso app.

defaultGroupFormat :: Show action => action -> IO JSVal Source #

defaultActionFormat :: Show action => action -> IO JSVal Source #

data ActionLoggerOptions action model Source #

Configuration for mkActionLogger.