Copyright | (C) 2019 Sviat Chumakov |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | Sviat Chumakov <svchumakov@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- mkActionLogger :: (Show action, ToJSON model) => ActionLoggerOptions action model -> (action -> model -> Effect action model) -> action -> model -> Effect action model
- defaultActionLogger :: (Show action, ToJSON model) => (action -> model -> Effect action model) -> action -> model -> Effect action model
- defaultGroupFormat :: Show action => action -> IO JSVal
- defaultStateFormat :: ToJSON model => MisoString -> MisoString -> model -> IO JSVal
- defaultActionFormat :: Show action => action -> IO JSVal
- data ActionLoggerOptions action model
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.
defaultStateFormat :: ToJSON model => MisoString -> MisoString -> model -> IO JSVal Source #
data ActionLoggerOptions action model Source #
Configuration for mkActionLogger.